Page 4 of 10

Help with getting a Local notification plugin working.

Posted: Wed Feb 05, 2014 8:22 pm
by mollyfud

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?


Help with getting a Local notification plugin working.

Posted: Thu Feb 06, 2014 1:48 pm
by Kateryna Grynko

Hi Molly,

No. Choose SDK in your app - App settings - Android binary.


Help with getting a Local notification plugin working.

Posted: Thu Feb 06, 2014 8:25 pm
by mollyfud

Okay. Have changed it and made no difference. Have also shared the project with you guys (I think).


Help with getting a Local notification plugin working.

Posted: Fri Feb 07, 2014 12:05 pm
by Kateryna Grynko

Hi Molly,

We are working on it, will provide a solution.


Help with getting a Local notification plugin working.

Posted: Sat Feb 08, 2014 9:28 am
by Igor

Hello,

I've fixed your project. What I did was:

  1. Put plugin into correct location depending on package name: "de.appplant.cordova.plugin.localnotification"

    Image

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

  3. Changed dependency in pom.xml because some plugin imports requires API Level 16.
    http://developer.android.com/referenc...
    Image

    Now app project builds without errors.


Help with getting a Local notification plugin working.

Posted: Sat Feb 08, 2014 11:41 am
by mollyfud

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!


Help with getting a Local notification plugin working.

Posted: Mon Mar 10, 2014 6:54 am
by Thomas5731102

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.


Help with getting a Local notification plugin working.

Posted: Mon Mar 10, 2014 7:05 am
by mollyfud

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! ;-) )


Help with getting a Local notification plugin working.

Posted: Mon Mar 10, 2014 7:05 am
by mollyfud

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! ;-) )


Help with getting a Local notification plugin working.

Posted: Tue Mar 11, 2014 10:52 am
by Thomas5731102

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.