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