mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2025-12-13 09:53:22 +00:00
Manually fire enable event on iOS WebKit after deviceready event
This commit is contained in:
@@ -350,3 +350,10 @@ channel.onCordovaReady.subscribe(function () {
|
|||||||
exports.setDefaults({});
|
exports.setDefaults({});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Called after 'deviceready' event
|
||||||
|
channel.deviceready.subscribe(function () {
|
||||||
|
if (window.webkit && exports.isEnabled()) {
|
||||||
|
exports.fireEvent('enable');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user