mirror of
https://gitee.com/shuto-github/cordova-plugin-network-information.git
synced 2026-04-22 00:00:02 +08:00
docs: Note on background usage
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user