simplec-dev / LocalNotification

local notification plugin
9 stars 7 forks source link

Plugin is undefined with PhoneGap Build #5

Open aaroncraigongithub opened 10 years ago

aaroncraigongithub commented 10 years ago

I've added to my config.xml and build seems to work without any problem.

However, window.plugins.localNotification is undefined.

Any idea what's going wrong?

simplec-dev commented 10 years ago

If it is a hydrated build, you need to install a new IPA file. Otherwise, the binary isn’t in the executable.

Otherwise, I suggest using iphone configuration utility and watching the logs

From: Aaron Craig [mailto:notifications@github.com] Sent: Thursday, November 14, 2013 1:39 PM To: simplec-dev/LocalNotification Subject: [LocalNotification] Plugin is undefined with PhoneGap Build (#5)

I've added to my config.xml and build seems to work without any problem.

However, window.plugins.localNotification is undefined.

Any idea what's going wrong?

— Reply to this email directly or view it on GitHubhttps://github.com/simplec-dev/LocalNotification/issues/5.

simplec-dev commented 10 years ago

We just created a deployed a new app for unit testing and found the same thing today. It looks like the javascript is not being loaded, even though it is accessible.

We put a copy of the javascript file in an application directory (/js) and referenced it, and everything worked like it used to.

It’s a mystery. If my guys figure out what is causing the issue I’ll email you.

Otherwise, I suggest putting a copy of the js file in a non root directory and referencing it that way.

From: Aaron Craig [mailto:notifications@github.com] Sent: Thursday, November 14, 2013 1:39 PM To: simplec-dev/LocalNotification Subject: [LocalNotification] Plugin is undefined with PhoneGap Build (#5)

I've added to my config.xml and build seems to work without any problem.

However, window.plugins.localNotification is undefined.

Any idea what's going wrong?

— Reply to this email directly or view it on GitHubhttps://github.com/simplec-dev/LocalNotification/issues/5.