Commit fd613254 by Sebastián Katzer

Only exec ready and launch on supported platforms - fixes #1406

parent 2b92fcfc
......@@ -416,12 +416,16 @@ exports.setLaunchDetails = function () {
// Called after 'deviceready' event
channel.deviceready.subscribe(function () {
exports.exec('ready');
if (['Android', 'windows', 'iOS'].indexOf(device.platform) > -1) {
exports.exec('ready');
}
});
// Called before 'deviceready' event
channel.onCordovaReady.subscribe(function () {
exports.setLaunchDetails();
if (['Android', 'windows', 'iOS'].indexOf(device.platform) > -1) {
exports.setLaunchDetails();
}
channel.onCordovaInfoReady.subscribe(function () {
exports.applyPlatformSpecificOptions();
......
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