Defines an AppEvent component.

App lifecycle events are fired during various stages of navigation. You may add an AppEvent component under the Application and chain in it any type of action such as CallSequence, CallFulSync or CustomAction components.
For more information about Ionic events: Platform
For more information about C8oSdk events: C8oSdk

Application Events can be:

onAppPause: Will be fired when the app is pushed to the background, and not displayed anymore on the screen.

onAppResume: Will be fired when the app is restored from the backround, and displayed again.

onAppResize: When the app is resized, for example by swiching to portrait orientation.

onAutoLogin: Will be fired when performing an automatic ‘login’ on the server. The resulting data is a Json structure {status:true, response: response, error: null}. If the status is true, you have successfully logged in.

onSessionLost: When the app looses the session to the Convertigo server. This may occurs if the device gets in offline mode for a time greater than the session timeout property in the Convertigo server project object. If this occurs, you must ensure that you re-execute a ‘Login’ sequence on the server to re-authenticate the user.

onNetworkReachable: Will be fired as soon as the app starts and that network connectivity has been tested against Convertigo server endpoint. From this event you can start a login sequence and execute a FullSync ‘Sync’ Action to sync your data. You are sure that you have network connectivity. This event can be fired again each time lost connectivity is restored and tested again.

onNetworkUnreachable: Will be fired if you do have network connectivity but that the Convertigo server endpoint is unreachable. For example, connected on a Wifi network unable to route to the server endpoint, or that the Server is not available for any other reason. You should warn the user about this state.

onNetworkOffline: Will be fired as soon as the device looses network connectivity (Plane mode, or no WIFI/3G/4G network).

Name Description
Comment Describes the object comment to include in the documentation report. This property generally contains an explanation about the object.
Event type Defines the event type.
Is active Defines whether the component is active.