A Promise that resolves when the notification operation is successful.
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().
The new state of the application.