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.

Deeplinking on Android causes crash

See original GitHub issue

Description

Creating a MAUI app with Deep Linking intents, then firing those intents causes a java crash

image

Steps to Reproduce

  1. Create File -> New MAUI App
  2. Add to the MainActivity an Intent Filter to allow deep linking / opening our Maui app from a URL
[IntentFilter(new[] { Intent.ActionView },
          Categories = new[] {
              Intent.CategoryDefault,
              Intent.CategoryBrowsable
          },
          DataSchemes = new string[] { "http", "https" },
          DataHost = "www.deeplink.com",
          DataPaths = new string[] { "/player.php", "/tournaments/view.php" },
          AutoVerify = true)]
  1. Build and run the app
  2. While the app is open, or isn’t open, use ADB to simulate a deep link request .\adb shell am start -W -a android.intent.action.VIEW -d "https://www.deeplink.com/player.php?p=16927"
  3. In the Android Emulator, choose our MAUI app when presented with the bottom drawer choice about how to open the link
  4. Witness a crash like the description says

Link to public reproduction project repository

https://github.com/edgiardina/MauiBug_DeepLinkCrash

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 13 Pixel 5

Did you find any workaround?

No response

Relevant log output

0xFFFFFFFFFFFFFFFF in Android.Runtime.JNIEnv.monodroid_debugger_unhandled_exception
0x59 in Android.Runtime.JNIEnv.PropagateUncaughtException at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNIEnv.cs:308,5

Issue Analytics

  • State:open
  • Created 10 months ago
  • Reactions:2
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
logikonlinecommented, Nov 29, 2022

I understand, the issue I found is that the Shell is likely executing the same GotoAsync code behind the scenes prior to our interaction. I only call this out because that is what breaks when I try to interact with the app when I do have control.

0reactions
angelrucommented, Aug 12, 2023

the same issue…

Read more comments on GitHub >

github_iconTop Results From Across the Web

App crashes on opening deep link from the app
Now when i try to open this link from app, it crashes with following error message. No Activity found to handle Intent :...
Read more >
Handling deep link crashes on the graph with includes and ...
I'm encountering crash when using deep link in fairly complex navigation graph ... Caused by: android.view. ... V/Deep link: Action : android.intent.action.
Read more >
Deep Links Crash Course : Part 3 Troubleshooting Your ...
After being notified of an issue in the Play Console, you can follow these steps to debug your Android App Links. This blog...
Read more >
Android app crashes when opening from a Branch Link
Android app crashes when opening from a Branch Link ... This mostly happens when there is a problem with the AndroidManifest.xml file. Please...
Read more >
Crashes | App quality
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
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