Commit dc5089c9 by Sebastián Katzer

Callbacks are called with the ID as a number and not as a string

parent c2daf399
......@@ -54,11 +54,12 @@ More informations can be found [here](https://build.phonegap.com/plugins/331).
- [bugfix:] `cancel` on iOS did not work.
- [enhancement:] Added 'hourly' as a new repeat time aliase.
- [feature:] Repeat with custom intervals on Android.
- **[bugfix:]** Callbacks are called with the ID as a number and not as a string.
#### Version 0.6.3 (12.12.2013)
- [bugfix:] Black screen on Android.
- [bugfix:] App throws an error on reboot on Android.
- Calling `cancel` on Android with an invalid String as ID does not throw an error anymore.
- [enhancement:] Calling `cancel` on Android with an invalid String as ID does not throw an error anymore.
#### Version 0.6.2 (04.12.2013)
- Release under the Apache 2.0 license.
......
......@@ -183,7 +183,7 @@ public class Receiver extends BroadcastReceiver {
// after reboot, LocalNotification.webView is always null
// may be call foreground callback later
if (!TextUtils.isEmpty(function) && LocalNotification.webView != null) {
LocalNotification.webView.sendJavascript(function + "(" + options.getId() + ")");
LocalNotification.webView.sendJavascript("setTimeout('" + function + "(\"" + options.getId() + "\")',0)");
}
}
}
\ No newline at end of file
......@@ -76,7 +76,7 @@ public class ReceiverActivity extends Activity {
// after reboot, LocalNotification.webView is always null
// may be call background callback later
if (!TextUtils.isEmpty(function) && LocalNotification.webView != null) {
LocalNotification.webView.sendJavascript("setTimeout('" + function + "(" + options.getId() + ")',0)");
LocalNotification.webView.sendJavascript("setTimeout('" + function + "(\"" + options.getId() + "\")',0)");
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment