Molly,
You can try this plug-in https://build.phonegap.com/plugins/48
Molly,
You can try this plug-in https://build.phonegap.com/plugins/48
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?
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...
I hadn't added device bit as I thought it was already in Appery.io . I will see if adding that helps.
Thanks again.
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.
Lets check if you added plugin correctly. Please try to export apk file do you get any errors?
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
=====================Hello! Sorry for delay, we're working on it.
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?
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.