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

Help with getting a Local notification plugin working.

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?

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

Help with getting a Local notification plugin working.

Hi Molly,

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

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

Help with getting a Local notification plugin working.

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

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

Help with getting a Local notification plugin working.

Hi Molly,

We are working on it, will provide a solution.

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

Help with getting a Local notification plugin working.

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.

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

Help with getting a Local notification plugin working.

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!

Thomas5731102
Posts: 0
Joined: Fri Mar 07, 2014 10:18 am

Help with getting a Local notification plugin working.

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.

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

Help with getting a Local notification plugin working.

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

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

Help with getting a Local notification plugin working.

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

Thomas5731102
Posts: 0
Joined: Fri Mar 07, 2014 10:18 am

Help with getting a Local notification plugin working.

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.

Return to “Issues”