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

Help with getting a Local notification plugin working.

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?

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

Help with getting a Local notification plugin working.

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...

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

Help with getting a Local notification plugin working.

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

Thanks again.

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

Help with getting a Local notification plugin working.

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.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Help with getting a Local notification plugin working.

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

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

Help with getting a Local notification plugin working.

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

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

Help with getting a Local notification plugin working.

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

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

Help with getting a Local notification plugin working.

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?

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

Help with getting a Local notification plugin working.

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.

Return to “Issues”