codelab-activity_transitionapi
codelab-activity_transitionapi copied to clipboard
TransitionsReceiver Intent extras is always null
I ran the complete debug variant of the app on Galaxy Z Flip 3 5G (Android 12) and Xiaomi Redmi K40 (Android 12). After walking for a 10 metres or so, TransitionsReceiver.onReceive was called. I assume it was walking activity detected. But intent.getExtras() was null. Hence, ActivityTransitionResult.hasResult(intent) returned false, and no information was printed.
I tried 31 and 32 for targetSdkVersion and compileSdkVersion
What is the issue?
Can you show us your code
the bug was fixed by using the MUTABLE PendingIntent flag, not the IMMUTABLE one
Thank you @MaksimDmitriev - saved me a lot of heartache.