docs: Note on background usage

This commit is contained in:
Norman Breau 2020-06-07 12:27:43 -03:00
parent 845c2d061c
commit 044ef36cd4

View File

@ -138,6 +138,10 @@ function onOffline() {
}
```
### Quirks
This plugin is unable to broadcast events while in the background. Use `navigator.connection.type` to check connection status on the [resume](https://cordova.apache.org/docs/en/latest/cordova/events/events.html#resume) event instead.
### iOS Quirks
During initial startup, the first offline event (if applicable) takes at least a second to fire.
@ -170,6 +174,10 @@ function onOnline() {
}
```
### Quirks
This plugin is unable to broadcast events while in the background. Use `navigator.connection.type` to check connection status on the [resume](https://cordova.apache.org/docs/en/latest/cordova/events/events.html#resume) event instead.
### iOS Quirks
During initial startup, the first `online` event (if applicable) takes