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.

Deep Links on Android very slow when app open in background

See original GitHub issue

Summary

Problem

When using deep links on Android when the application is open in the background, the average time between when choosing to open a link with app is 5s. During this time, the screen is greyed out and not responsive. This makes the use of deep links impossible.

Expected Behavior

Have the application open instantaneously (or at least in a lot less then 5s…).

Note

This error does not occur in Expo Go.

The application opens properly from the link when it is stopped.

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

managed

What platform(s) does this occur on?

Android

SDK Version (managed workflow only)

41

Environment

Expo

Expo CLI 4.7.2 environment info: System: OS: Windows 10 10.0.19042 Binaries: Node: 12.18.4 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.14.6 - C:\Program Files\nodejs\npm.CMD SDKs: Android SDK: API Levels: 28, 29 Build Tools: 28.0.3, 29.0.2 System Images: android-24 | Google Play Intel x86 Atom, android-25 | Google APIs Intel x86 Atom, android-28 | Android TV Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-R | Google Play Intel x86 Atom Android NDK: 20.1.5948944 IDEs: Android Studio: Version 3.6.0.0 AI-192.7142.36.36.6392135 npmPackages: expo: ~41.0.1 => 41.0.1 react: 16.13.1 => 16.13.1 react-dom: 16.13.1 => 16.13.1 react-native: https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz => 0.63.2 react-native-web: ~0.13.12 => 0.13.18 Expo Workflow: managed

Physical Devices

Samsung Galaxy S6 running Android 7.0 Samsung Galaxy A5 running Android 7.0

Reproducible demo or steps to reproduce from a blank project

Generate a new expo project (I tested with blank and blank (TypeScript) projects):

$ expo init

Add support for a deep link in app.json:

"intentFilters": [
        {
          "action": "VIEW",
          "data": [
            {
              "scheme": "https",
              "host": "example.com",
              "pathPrefix": "/"
            }
          ],
          "category": ["BROWSABLE", "DEFAULT"]
        }
      ]

Build the application (I chose apk and Generate new keystore)

$ expo build:android

Install the .apk, and open the application. With the application open in the background, open https://example.com/.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Garfield1002commented, Jun 28, 2021

I was also unable to reproduce the error with the galaxy nexus emulator.

0reactions
github-actions[bot]commented, Jan 27, 2022

This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firebase Deep link not working in background in Android
I am using firebase deep linking for Android, but it does not work properly in background. Here is my code that I am...
Read more >
Slow rendering
If your app suffers from slow UI rendering, then the system is forced to skip frames and the user will perceive stuttering in...
Read more >
Create Deep Links to App Content
These intent filters allow deep linking to the content in any of your activities… ... Open the user's preferred app that can handle...
Read more >
Handling Android App Links
Web links are deep links that use the HTTP and HTTPS schemes. On Android 12 and higher, clicking a web link (that is...
Read more >
App startup time | Android Developers
Android vitals considers your app's startup times excessive when the app's: Cold startup takes 5 seconds or longer. Warm startup takes 2 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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