Warning | ||
---|---|---|
| ||
Please note that on android foreground push open will not be shown |
Step 1 - Listen to "deviceready" event (iOS only)
Code Block | ||||
---|---|---|---|---|
| ||||
document.addEventListener('deviceready', this.onDeviceReady, false); |
...
Step2 - Listen
...
to resume event and activate it explicitly for the first time(iOS only)
Code Block | ||||
---|---|---|---|---|
| ||||
onDeviceReady: function() { onResume(); document.addEventListener("resume", onResume, false); app.receivedEvent('deviceready'); console.log('Received Event: ' + id); }, |
...