From 044ef36cd4a835cfcafdc570e9c769cbe630b93a Mon Sep 17 00:00:00 2001 From: Norman Breau Date: Sun, 7 Jun 2020 12:27:43 -0300 Subject: [PATCH] docs: Note on background usage --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 5440199..03faac6 100644 --- a/README.md +++ b/README.md @@ -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