Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Help with getting a Local notification plugin working.

Molly,

We'll test it.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Help with getting a Local notification plugin working.

Hi Molly,

window.plugin.notification is a PhoneGap plug-in, you can't use it in browser. Better check if it exists:preif (window.plugin.notification){
//... your code
}/pre

mollyfud
Posts: 0
Joined: Mon Feb 11, 2013 5:16 am

Help with getting a Local notification plugin working.

Cool. Will try that. The issue I saw was a failed Android Apk compile/build. Will this help?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Help with getting a Local notification plugin working.

Should be ok now, please check and let us know about the result.

mollyfud
Posts: 0
Joined: Mon Feb 11, 2013 5:16 am

Help with getting a Local notification plugin working.

I tried that but got the same build error as above.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Help with getting a Local notification plugin working.

Hello! You incorrectly added plugin, please check error log:

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /srv/tiggzi/jenkins/workspace/132600-android/41595/132600/android/LocalNotification/src/com/phonegap/plugins/localnotification/Receiver.java:[30,25] package android.annotation does not exist

mollyfud
Posts: 0
Joined: Mon Feb 11, 2013 5:16 am

Help with getting a Local notification plugin working.

Incorrectly or is there more packages/Java needed? What can I try next?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Help with getting a Local notification plugin working.

Hi Molly,

In config.xml specify this plug-in: http://docs.appery.io/documentation/u...

mollyfud
Posts: 0
Joined: Mon Feb 11, 2013 5:16 am

Help with getting a Local notification plugin working.

Okay. So this is what it looks like for what I added:

-----------------

Code: Select all

 <!-- Custom plugins  

<feature name="LocalNotification"
<param name="android-package" value="de.appplant.cordova.plugin.local-notification.LocalNotification"
</feature --

--------------

(Note: In my config file the above isn't all commented out, the closing two dashes and closing pointy brack are before the feature but not doing it like this here meant that you couldn't see the stuff. I assume it was treated as code not text here)
Can you suggest what I need to make it?

TIA

mollyfud
Posts: 0
Joined: Mon Feb 11, 2013 5:16 am

Help with getting a Local notification plugin working.

So basically I have been looking at this for local notifications.
1) Is there another way to do it in Appery.io now since the last time some asked?
2) Is it a case that this would have to be implemented as part of appery.io and I should just give up on this and log adding this plugin or something like it, directly to the product as an Enhancement request/suggestion? Its seems like this functionality (local notifications) is something lots would like to have!

Return to “Issues”