January 2019
Intermediate to advanced
592 pages
14h 30m
English
In this recipe, we made use of the built-in AppState module. The module listens to the Activity events on Android, and on iOS it uses NSNotificationCenter to register a listener on various UIApplication events. Note that both platforms support the active and background states; however, the inactive state is an iOS only concept. Android does not explicitly support the inactive state due to its multitasking implementation, so only toggles apps between background and active states. To achieve the equivalent of the iOS inactive state on Android, see the Hiding application content when multitasking recipe later in this chapter.
Read now
Unlock full access