android / codelab-android-navigation

Apache License 2.0
635 stars 275 forks source link

10 Deeplinking to a destinatino does not work on Android 13 #123

Open lvguowei opened 2 years ago

lvguowei commented 2 years ago

Step 10 does not seem to work on Android 13, I tested on Android 11 and it worked fine.

mtf7101520 commented 2 years ago

邮件已经收到了,谢谢!

jeonhei commented 2 years ago

Also not work on api31

mtf7101520 commented 2 years ago

邮件已经收到了,谢谢!

rossanafmenezes commented 1 year ago

Having the same issue. But actually it seems to ONLY work on Android 11. Tried on 13, 12, 10 and it doesn't work, but works fine on Android 11. :)

mtf7101520 commented 1 year ago

邮件已经收到了,谢谢!

hhyeok1026 commented 1 year ago

In android12 (sdk31) or higher version, I have confirmed that the following error stack is coming up.

========================

java.lang.RuntimeException: Unable to start receiver com.example.android.codelabs.navigation.DeepLinkAppWidgetProvider: java.lang.IllegalArgumentException: com.example.android.codelabs.navigation: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.

========================

Updating the navigationVersion from 2.3.5 to 2.5.3 seems to fix the above issue.

However, after entering the deep link, a side effect that could not be moved to the HomeFragment occurred.

what could be the problem... Is it a problem with the navigation library itself..?

+) The side effect written above does not occur on android 11 (Sdk30), navigation version 2.3.5 and works as desired. That's probably a library issue.

mtf7101520 commented 1 year ago

邮件已经收到了,谢谢!