Function: notifyAppStateChanged

Function: notifyAppStateChanged()

notifyAppStateChanged(status): Promise< void >

Description

Notify that the application's state has changed.

React Native's AppState() function tells you if the app is in the foreground or background. See: https://reactnative.dev/docs/appstate#addeventlistener. This Fordefi function should be called each time an application changes its AppState().

Parameters

ParameterTypeDescription
statusAppStateStatusThe new state of the application.

Returns

Promise< void >

A Promise that resolves when the notification operation is successful.