mirror of
https://gitee.com/shuto/cordova-plugin-network-information.git
synced 2025-03-17 13:21:02 +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
|
### iOS Quirks
|
||||||
|
|
||||||
During initial startup, the first offline event (if applicable) takes at least a second to fire.
|
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
|
### iOS Quirks
|
||||||
|
|
||||||
During initial startup, the first `online` event (if applicable) takes
|
During initial startup, the first `online` event (if applicable) takes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user