Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native app installled but not visible on home screen or app screen

I'm working on a react-native project, and I've run into an error. I can install the app on my phone using react-native run-android, it installs the app on my phone and launches it. The problem is that the app is not visible on the home screen or app menu, so if I close the app, I have to re-download the app again from CLI. According to settings the app is installed and is taking up memory, but it's not present on the home screen or the app menu.

I have tried to create APK's as well and download them on my phone, but I have the same problem. The app is downloaded and installed, but the open button is grayed out, and there's still no sign on the app on neither the home screen or the app menu.

App present in settings App NOT present in app menu

like image 625
Malu123 Avatar asked Mar 06 '23 09:03

Malu123


1 Answers

I had this problem and the issue is that i put <data android:scheme="@string/facebook_app_id" /> inside the same intent-filter as action and category.

Just take data out and put it in another intent-filter like:

<intent-filter>
  <action android:name="android.intent.action.MAIN" />
  <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
  <data android:scheme="@string/facebook_app_id" />
</intent-filter>

Thats solve the problem for me :)

like image 168
gerald heng Avatar answered Mar 10 '23 09:03

gerald heng