In "Module 07.7 - Offline Access" , WL.Events are introduced.
I think WL.Events.WORKLIGHT_IS_CONNECTED/WORKLIGHT_IS_DISCONNECTED should be fired when connection status changed from/to online/offline.
WL.Events was fired when using WL.Client.invokeProcedure and WL.Client.connect,but it was not fired when change of status was detected by Worklight heartbeat.
I set heartbeat interval to 5 sec using WL.Client.setHeartBeatInterval(5).
<<received messages>>(in web browser debug console)
- online ---
Request [/apps/services/api/OfflineApp/android/heartbeat] wlgap.android.js:1285
- offline ---
[/apps/services/api/OfflineApp/android/heartbeat] failure. state: 404, response: The server was unable to process the request from the application. Please try again later.
Are WL.Evnets (WORKLIGHT_IS_CONNECTED/WORKLIGHT_IS_DISCONNECTED) fired when using heartbeat ?
Eclipse : 3.7.2