Commit 5a098fb4 by Sebastián Katzer

Make sure that platform specific properties are added before custom deviceready events were called

parent 8865a7e4
...@@ -205,10 +205,11 @@ LocalNotification.prototype = { ...@@ -205,10 +205,11 @@ LocalNotification.prototype = {
oncancel: function (id, state, json) {} oncancel: function (id, state, json) {}
}; };
var plugin = new LocalNotification(); var plugin = new LocalNotification(),
channel = require('cordova/channel');
document.addEventListener('deviceready', function () { channel.onCordovaReady.subscribe( function () {
plugin.applyPlatformSpecificOptions(); plugin.applyPlatformSpecificOptions();
}, false); });
module.exports = plugin; module.exports = plugin;
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