question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't Find Installed React Native Android App On Phone and Emulator

See original GitHub issue

So something strange happened, when developing I noticed that my react-native app compiled but wasn’t visible (not found on the apps list/tray) on my emulator although the react-native run-android launches it (both debug and release) but when I go to Settings > Apps I can see the app listed there, I thought this was some new thing to react for dev environments, but I noticed that after compiling my app as release I can’t find it on the phone until I go to Settings > Apps and even from there I can’t launch.

Another thing I first noticed was, that the first time I compile the release, while trying to install a notice appeared on my screen saying, Google play connect rejected my app, and at first I couldn’t install the app, but after rerunning the compilation I was able to, but now the app can’t be launched.

I have generated a signed apk and have set it up in android > app > build.gradle

Please find below my environment’s information. Environment: OS: macOS High Sierra 10.13.5 Node: 8.11.3 Yarn: 1.7.0 npm: 5.6.0 Watchman: 4.9.0 Xcode: Xcode 9.4.1 Build version 9F2000 Android Studio: 3.1 AI-173.4819257

Packages: (wanted => installed) react: 16.3.1 => 16.3.1 react-native: 0.55.4 => 0.55.4

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:11

github_iconTop GitHub Comments

13reactions
GeraldHengcommented, Feb 15, 2019

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 😃

2reactions
kkusanagicommented, Feb 17, 2019

@GeraldHeng Thanks. You are such a savior, you had save my half year problem.

I’m actually have a same problem after doing a setup for Firebase Dynamic Link. Here is my version of AndroidManifest.xml after fix.

<activity
        android:name=".MainActivity"
        android:label="@string/app_name"
        android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
        android:windowSoftInputMode="adjustResize"
        android:launchMode="singleTop">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
            <action android:name="android.intent.action.DOWNLOAD_COMPLETE"/>
        </intent-filter>
        <intent-filter android:autoVerify="true">
            <action android:name="android.intent.action.VIEW"/>
            <category android:name="android.intent.category.DEFAULT"/>
            <category android:name="android.intent.category.BROWSABLE"/>
            <data android:host="example.page.link" android:scheme="http"/>
            <data android:host="example.page.link" android:scheme="https"/>
        </intent-filter>
</activity>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Running On Device - React Native
Most Android devices can only install and run apps downloaded from Google Play, by default. You will need to enable USB Debugging on...
Read more >
Run react-native on android emulator - Stack Overflow
Once the emulator is running, you can check with adb devices if the emulator shows up. Then you can simply use react-native run-android...
Read more >
Running React Native Apps on Android - Instamobile
Running Our React Native Apps on Android · Plug in your Android device or open an emulator · Open a Terminal window and...
Read more >
React Native for Android development on Windows
Get started with React Native by installing required tools · JAVA_HOME: C:\Program Files\Android\Android Studio\jre\bin · ANDROID_HOME: C:\Users\ ...
Read more >
Create a React Native app on an Android emulator.
From your start menu, search for “Edit the system environment variables.” This will require administrative account permissions. Click Environment variables...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found