How do you go about detecting what app is currently running on the foreground when using react-native.
My RN app will be running in the background and needs to be able to detect the launch of specific apps within the phone. For example if the user opens game, how would i go about detecting what the app opened is (app package id).
I read that android native has this feature, through reading this stack overflow question detect apps running in foreground
I would like to know if there is a process similar in react-native, help would be much appreciated.
Thanks.