Page 3 of 10

Help with getting a Local notification plugin working.

Posted: Wed Jan 29, 2014 10:00 pm
by Kateryna Grynko

Molly,

You can try this plug-in https://build.phonegap.com/plugins/48


Help with getting a Local notification plugin working.

Posted: Wed Jan 29, 2014 11:14 pm
by mollyfud

Thanks for the suggestion but unfortunately iOS only and, while supporting both would be nice, I am more interested in Android support.

Has anyone else had any other luck?


Help with getting a Local notification plugin working.

Posted: Fri Jan 31, 2014 7:55 am
by Maryna Brodina

Hello! Sorry for delay!
1) Did you add org.apache.cordova.device as it's specified in Dependencies?
2) Please check if you added plugin correctly as it shown here https://github.com/katzer/cordova-plu...


Help with getting a Local notification plugin working.

Posted: Fri Jan 31, 2014 12:27 pm
by mollyfud

I hadn't added device bit as I thought it was already in Appery.io . I will see if adding that helps.

Thanks again.


Help with getting a Local notification plugin working.

Posted: Sat Feb 01, 2014 1:39 pm
by mollyfud

Okay, I think I added the plugin as suggested and this dependant one (I thought it was already included as it is listed in the cordova_plugins.js file. I did add it and it changed nothing.


Help with getting a Local notification plugin working.

Posted: Sun Feb 02, 2014 3:09 pm
by Igor

Lets check if you added plugin correctly. Please try to export apk file do you get any errors?


Help with getting a Local notification plugin working.

Posted: Sun Feb 02, 2014 3:26 pm
by mollyfud

Here is the error I get:

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

Build error

Most likely build error cause:

/LocalNotification/src/com/phonegap/plugins/localnotification/Receiver.java:[30,25] package android.annotation does not exist /LocalNotification/src/com/phonegap/plugins/localnotification/Receiver.java:[33,31] cannot find symbol symbol : class Builder location: class android.app.Notification /LocalNotification/src/com/phonegap/plugins/localnotification/Receiver.java:[122,12] cannot find symbol symbol : class Builder location: class de.appplant.cordova.plugin.localnotification.Receiver /LocalNotification/src/com/phonegap/plugins/localnotification/Receiver.java:[143,35] cannot find symbol symbol : class Builder location: class de.appplant.cordova.plugin.localnotification.Receiver /LocalNotification/src/com/phonegap/plugins/localnotification/Receiver.java:[143,12] cannot find symbol symbol : class Builder location: class de.appplant.cordova.plugin.localnotification.Receiver /LocalNotification/src/com/phonegap/plugins/localnotification/Receiver.java:[160,35] cannot find symbol symbol : class Builder location: class de.appplant.cordova.plugin.localnotification.Receiver /LocalNotification/src/com/phonegap/plugins/localnotification/Receiver.java:[159,5] cannot find symbol symbol : class SuppressLint location: class de.appplant.cordova.plugin.localnotification.Receiver /LocalNotification/src/com/phonegap/plugins/localnotification/Receiver.java:[85,8] cannot find symbol symbol : class Builder location: class de.appplant.cordova.plugin.localnotification.Receiver /LocalNotification/src/com/phonegap/plugins/localnotification/Receiver.java:[125,8] cannot find symbol symbol : class Builder location: class de.appplant.cordova.plugin.localnotification.Receiver /LocalNotification/src/com/phonegap/plugins/localnotification/Receiver.java:[125,47] cannot find symbol symbol : class Builder location: class android.app.Notification

=====================

Help with getting a Local notification plugin working.

Posted: Mon Feb 03, 2014 10:20 pm
by Maryna Brodina

Hello! Sorry for delay, we're working on it.


Help with getting a Local notification plugin working.

Posted: Mon Feb 03, 2014 11:18 pm
by mollyfud

Thanks. I do appreciate the effort and understand its an edge case. I do think that if, with your help, we can get it to work, it is functionality others would want and I will do my best (again with your help) to document the process of setting it up.

Sort of side question, I never have looked into your plugin structure but is the wrapping/preparing of a plugin like this the sort of thing that you could setup as a Appery.io plugin to add to projects more easily?


Help with getting a Local notification plugin working.

Posted: Wed Feb 05, 2014 3:08 pm
by Kateryna Grynko

Hi Molly,

If you follow our tutorial, change your package name before importing Java classes.

In your case should be "package com.phonegap.plugins.localnotification;"

Most probably, your default SDK is 2.2, please try 4.1.