Page 1 of 1

Installing Local Notifications phonegap plugin

Posted: Mon Nov 03, 2014 4:16 pm
by Deki

Hi,

I'm trying to install this 3rd party plugin https://github.com/katzer/cordova-plu... but it is not working. I'm getting the error "Cannot read property 'notification' of undefined". I've shared my app with you guys, can you see if I have it installed correctly? My app name is called "cat" and this test is located on the "TestScreen" by clicking the "Save" button.

This is the JavaScript portion
Image

This is the Java files
Image

This is my cordova_plugins.js
Image

xml.config file
Image

This is how I test the local notification. Just a simple click event on the Save button.
Image

Error
Image


Installing Local Notifications phonegap plugin

Posted: Mon Nov 03, 2014 5:46 pm
by Maryna Brodina

Hello!

Please install and test your app on device. PhoneGap plugins don't work in browser.


Installing Local Notifications phonegap plugin

Posted: Mon Nov 03, 2014 5:53 pm
by Deki

I get a build error.

Image


Installing Local Notifications phonegap plugin

Posted: Mon Nov 03, 2014 7:23 pm
by rai

hi deki,

i was facing same issue couldn't solve it, just wanted to test the local notification and get it work so i can peacefully can design an app .. but unfortunately still trying to figure it out :(

however there was a post by mollyfud

https://getsatisfaction.com/apperyio/...

PDF stepbystep
https://drive.google.com/file/d/0B_NL...

try it out..


Installing Local Notifications phonegap plugin

Posted: Mon Nov 03, 2014 7:32 pm
by rai

deki,

there will be webinar

Installing and Using 3rd-party Cordova Plug-ins with Appery.io
Webinar ยท Wednesday, November 5, 2014 from 11:00 AM to 12:00 PM (Timezone: America/Los_Angeles)

http://plancast.com/p/ls2h

i think its good to attend it :)


Installing Local Notifications phonegap plugin

Posted: Tue Nov 04, 2014 7:52 am
by Evgene Karachevtsev

Hello!

It is a good idea. Adding plugins is really difficult and it requires changes to the source code, unfortunately this is out of scope of our support.


Installing Local Notifications phonegap plugin

Posted: Tue Nov 04, 2014 2:23 pm
by Deki

Fantastic, rai thanks so much!! I followed the tutorial posted by mollyfud and it works for android! Will definitely attend Appery's webinar on it as well...


Installing Local Notifications phonegap plugin

Posted: Tue Nov 04, 2014 2:29 pm
by rai

great, have you tried on IOS ?


Installing Local Notifications phonegap plugin

Posted: Tue Nov 04, 2014 5:56 pm
by rai

hi Deki, i was trying to follow mollyfud tutorial for android device, it looks i missed something.. the only thing i see at the end is to add JS on button click :

window.plugin.notification.local.add({ id: 1, // is converted to a string title: 'Reminder', message: 'Hello World' });

but still didn't work

is it possible for you to share example of your project a href="mailto:appsmuscat@gmail.com" rel="nofollow"appsmuscat@gmail.com/a

i need to go forward playing with local notification along with other appery's controls such as datepicker but need to understand well with plugins.

thank