Thanks for this suggestion, will try it out. So I understand, you mean go into the java code and change the package name and then the references to it?
Thanks for this suggestion, will try it out. So I understand, you mean go into the java code and change the package name and then the references to it?
Hi Molly,
No. Choose SDK in your app - App settings - Android binary.
Okay. Have changed it and made no difference. Have also shared the project with you guys (I think).
Hi Molly,
We are working on it, will provide a solution.
Hello,
I've fixed your project. What I did was:
Put plugin into correct location depending on package name: "de.appplant.cordova.plugin.localnotification"
Changed package name in config.xml. It was:
pre
code
value="de.appplant.cordova.plugin.local-notification.LocalNotification"
/code
/pre
Now it's:
pre
code
value="de.appplant.cordova.plugin.localnotification.LocalNotification"
/code
/pre
Changed dependency in pom.xml because some plugin imports requires API Level 16.
http://developer.android.com/referenc...
Now app project builds without errors.
Thank you so much! I will try it when I get home.
Looking at it now it makes a lot of sense when I see how you did the directory structure.
Hopefully this will be helpful for others.
I want to again thank all you guys for your patients with this issue! Your support has gone well beyond excellent service!
Hi Molly,
did this work ? As for me I managed to install and build that plugin without any errors but it seems I can't make it work on the mobile.
Hi Thomas,
Thats what I got as well and I took a break from it. Also, in trying to make it work, I totally stuffed up my environment to the point it wouldn't build the APK.
With that and a feeling that I had asked too much of the excellent folks at Appery.io, I left it alone. Also I am not a direct user of the Apery.io site (use a partner of theirs site) and it hadn't gotten the update that allowed this. I tried the beep notification to prove my ultimate goal (location based app that notified when close to something of interest) for wanting this would be possible, even if this didn't work. Would love that the notification came to the notification area with out the need for push notification but a beep or vibration might work okay. Would love to have the information though in the notification panel.
Please let me know if you crack the issue though as I would be interested for a local notification feature (in fact put it in as an enhancement! )
Hi Thomas,
Thats what I got as well and I took a break from it. Also, in trying to make it work, I totally stuffed up my environment to the point it wouldn't build the APK.
With that and a feeling that I had asked too much of the excellent folks at Appery.io, I left it alone. Also I am not a direct user of the Apery.io site (use a partner of theirs site) and it hadn't gotten the update that allowed this. I tried the beep notification to prove my ultimate goal (location based app that notified when close to something of interest) for wanting this would be possible, even if this didn't work. Would love that the notification came to the notification area with out the need for push notification but a beep or vibration might work okay. Would love to have the information though in the notification panel.
Please let me know if you crack the issue though as I would be interested for a local notification feature (in fact put it in as an enhancement! )
Hello,
it works now. A few more things need to be done additionnally to what Igor listed.
You need to manually add the information contained in the plugin.xml file into the appropriate file (AndroidManifest.xml).
You also need to modify a bit the file local-notification.js and wrap the content into a method (you can use other .js files of your project as an example):
cordova.define("de.appplant.cordova.plugin.LocalNotification",
function (require, exports, module) {
// .... put here the current local-notification.js file content
// don't forget to close the method below line [module.exports = plugin;]
// like this:
});
That worked for me.