Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect when other Application is launched in React Native app

I want my react native app to detect when Google Maps app is open to show some travel tip. Is it possible?

like image 666
Archit Avatar asked Sep 10 '25 00:09

Archit


2 Answers

You can not detect if another app is launched for security reasons. Installed apps can´t listen another apps because they are "sandboxed".

You can only interact with another apps opening it throught your app by Deeplinking or detecting if is or not installed.

like image 90
NEOline Avatar answered Sep 13 '25 11:09

NEOline


It's not a limitation of React Native. All iOS applications cannot access other applications, except to open it or share some resources.

like image 36
jbesse Avatar answered Sep 13 '25 10:09

jbesse