mirror of
https://gitee.com/shuto/cordova-plugin-network-information.git
synced 2025-01-18 13:42:49 +08:00
docs: Note on background usage
This commit is contained in:
parent
845c2d061c
commit
044ef36cd4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user