Deki
Posts: 0
Joined: Tue Apr 15, 2014 4:53 pm

Installing Local Notifications phonegap plugin

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Installing Local Notifications phonegap plugin

Hello!

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

Deki
Posts: 0
Joined: Tue Apr 15, 2014 4:53 pm

Installing Local Notifications phonegap plugin

I get a build error.

Image

rai
Posts: 0
Joined: Sat Oct 25, 2014 11:46 am

Installing Local Notifications phonegap plugin

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

rai
Posts: 0
Joined: Sat Oct 25, 2014 11:46 am

Installing Local Notifications phonegap plugin

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 :)

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Installing Local Notifications phonegap plugin

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.

Deki
Posts: 0
Joined: Tue Apr 15, 2014 4:53 pm

Installing Local Notifications phonegap plugin

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

rai
Posts: 0
Joined: Sat Oct 25, 2014 11:46 am

Installing Local Notifications phonegap plugin

great, have you tried on IOS ?

rai
Posts: 0
Joined: Sat Oct 25, 2014 11:46 am

Installing Local Notifications phonegap plugin

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

Return to “Issues”