Created on 16 February 2018
icon_unfollowing
Login to follow
offlinedetection

OfflineDetection

Stable version 1.1.0 (Compatible with OutSystems 11)
Other versions available for 10
Uploaded on 06 September 2023 by 
offlinedetection

OfflineDetection

Details
Allow a mobile app to accurately detect if it's online or offline.
Read more

 



Warning: this component's logic has been migrated to OfflineDetection Reactive, to allow it being used also by Reactive Web Apps, and it's likely to be discontinued in the future. For now is being kept for legacy and maintainability issues, but is strongly advised to switch to the new implementation.

 



Allows a mobile app to accurately detect if it's online or offline, even if it's connected to a WIFI network with no connectivity. Includes block that triggers several events related with the app's connectivity, that can automatically grab ajax requests made while the connection is down and remakes them after the connection is restored, and simple client side logic to validate connectivity status.


Completely based on Javascript (offline.js) and with no external dependencies.


Detail of existing triggered events:

  • Checking - Whenever we are testing the connection
  • ConfirmedOffline - A connection test has failed, fired even if the connection was already offline
  • ConfirmedOnline - A connection test has succeeded, fired even if the connection was already online
  • Offline - The connection has gone from online to offline
  • Online- The connection has gone from offline to online
  • RequestsCapture - A new request is being held (if RemakeRequests flag is set to true)
  • RequestsFlush - Any pending requests have been remade (if RemakeRequests flag is set to true)



Release notes (1.1.0)
  • Logic migrated to a new OfflineDetection Reactive component, now this component only wraps the reactive one.
  • Updated to OutSystems 11, changed to a library and removed demo module from main application
License (1.1.0)
Reviews (0)
Category
Functional libraries & utilities, Network
Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from  who created this asset.
Dependencies
See all 1 dependencies
Application Objects
OfflineDetection has 0 AOs.
Team
Compatible with
Version 11
11.9.2 or higher
11.7.6 to 11.9.0
11.0.539 to 11.0.615
Database:
All
Asset consumers
No consumers yet.
Weekly downloads