Closed yschimke closed 8 months ago
API 33
java.lang.IllegalArgumentException: com.example.android.wearable.wear.alwayson: 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.
at android.app.PendingIntent.checkFlags(PendingIntent.java:401)
at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:671)
at android.app.PendingIntent.getBroadcast(PendingIntent.java:658)
at com.example.android.wearable.wear.alwayson.AlwaysOnAppTests$textIsCorrectAfterGoingIntoAmbientModeAndReceivingIntent$1.invokeSuspend$lambda$1(AlwaysOnAppTests.kt:186)
API 30