Open lvguowei opened 2 years ago
邮件已经收到了,谢谢!
Also not work on api31
邮件已经收到了,谢谢!
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. :)
邮件已经收到了,谢谢!
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.
Side effect contents After deep linking, navigation bottom view doesn't work properly.
It works normally when entering the app, not deep linking.
Normal operation after pressing the back button in the deep link to exit to the back stack
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.
邮件已经收到了,谢谢!
Step 10 does not seem to work on Android 13, I tested on Android 11 and it worked fine.