Page 5 of 10

Help with getting a Local notification plugin working.

Posted: Tue Mar 11, 2014 11:01 am
by Maryna Brodina

Hello! Thank you for update!


Help with getting a Local notification plugin working.

Posted: Tue Mar 11, 2014 11:19 am
by mollyfud

Any way you could share the entire file?
TIA


Help with getting a Local notification plugin working.

Posted: Tue Mar 11, 2014 1:24 pm
by mollyfud

Okay, having a look at this. Would love to see what you had for the AndroidManifest.xml as I am not experienced with this. I am trying it but it is very confusing. Have my fingers crossed. ;-)


Help with getting a Local notification plugin working.

Posted: Tue Mar 11, 2014 2:28 pm
by mollyfud

Okay, so was able to create a buildable APK but hitting a button that should create the Notification (assuming I have that code right as well) and it does nothing.


Help with getting a Local notification plugin working.

Posted: Wed Mar 12, 2014 1:20 pm
by Maryna Brodina

Hello! Perhaps you added or invoke it in a wrong way. Please try to debug your app and check logs (with logcat).


Help with getting a Local notification plugin working.

Posted: Wed Mar 12, 2014 3:47 pm
by mollyfud

Thanks guys! Got it working! Turns out I had a typo! (Yes, interface problem! The one between the Keyboard and the Chair!)

Works great!

Thanks all the Appery support folks for the help and Thomas as well!


Help with getting a Local notification plugin working.

Posted: Tue Mar 18, 2014 9:44 pm
by Yan Yi

Hi Mollyfud! Do you mind posting your code and your typo here? Just wish to find out as much as possible on how you solved the problem :)

I myself am struggling with installing a plugin too! This post has been quite insightful so far.


Help with getting a Local notification plugin working.

Posted: Tue Mar 18, 2014 9:58 pm
by mollyfud

Hey Yan,
No worries. The issue I had was no error building the APK and then no notification. When I used Logcat via ADB (or is it ABD....always get that mixed up) there was a note about no notification. Turned out in one of the config files, can't remember which one (was too excited to have got it working) there was an extra n at the end of a LocalNotification word! (silly, silly mistake and annoying to find).

Look carefully over all your addition to files.

I am wondering if the easiest thing (I do want to write this up eventually but for now) is to recreate the base project in the Appery.io version and make a backup avaliable.

Appery.io staff: Is there any reason not to share the work that way? (Licensing on your part, doesn't pull the plugin, etc, etc) and/or is there a better way to capture the ability to add the Local notification plugin stuff that can make it addable to any project easier?

I am such a novice in this, but it seemed to me that a bit of the extra hard work is doing things to pull the plugin into the project that in an eclipse based phonegap project are pretty much done automatically for you (please correct me if I am wrong). If this is right, have you (appery.io) considered if there is a way to mimic the way that system works into the appery.io framework? I could understand it probably isn't a priority, but thought I would ask.

Lastly (and this is getting rambly ;-) ) as I say, I think these plugin projects have clues to how to add them and what text to use where. I would love, time permitting to try to do a second plugin and if I can confirm that my thoughts are right, possibly write up a cheat sheet/hint sheet on what to look for in the plugins stuff to move it across.

Thanks again for everyones help.

PS. Is there a way to add files to these forums or would I have to make it available in other ways (i.e. Google Drive, dropbox, etc)?


Help with getting a Local notification plugin working.

Posted: Tue Mar 18, 2014 10:18 pm
by Maryna Brodina

Hello Mollyfud!

[quote:]is there a better way to capture the ability to add the Local notification plugin stuff that can make it addable to any project easier[/quote]no

[quote:]if there is a way to mimic the way that system works into the appery.io framework[/quote]it's something we might consider adding it in the future

[quote:]Is there a way to add files to these forums or would I have to make it available in other ways (i.e. Google Drive, dropbox, etc)?[/quote]you would need to use other ways.


Help with getting a Local notification plugin working.

Posted: Tue Mar 18, 2014 10:21 pm
by Yan Yi

Thanks for your quick response! I think one easy way to upload files would be to use a public link on dropbox/google drive like you said :)

And yes, installing external plugins to cordova/phonegap projects is a breeze - you just need to type some commands into the command line and it is done automatically!

I tried using Logcat too, but it seems now you need to gain root access to your phone in order to utilize it? May I ask, how did you get your logcat up and running?

thanks!