You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
The package works perfectly on Android versions before API 31, while mentioned exception is thrown for Android devices with API 31+, I managed to workaround the exception by changing the PendingIntent from FLAG_UPDATE_CURRENT To FLAG_MUTABLE The exception with SmsSender
Before
val deliveredPendingIntent = PendingIntent.getBroadcast(
context,
UUID.randomUUID().hashCode(),
deliveredIntent,
PendingIntent.FLAG_UPDATE_CURRENT
After
val deliveredPendingIntent = PendingIntent.getBroadcast(
context,
UUID.randomUUID().hashCode(),
deliveredIntent,
PendingIntent.FLAG_IMMUTABLE
Best Regards
The text was updated successfully, but these errors were encountered:
Hi,
The package works perfectly on Android versions before API 31, while mentioned exception is thrown for Android devices with API 31+, I managed to workaround the exception by changing the PendingIntent from FLAG_UPDATE_CURRENT To FLAG_MUTABLE
The exception with SmsSender
Before
val deliveredPendingIntent = PendingIntent.getBroadcast(
context,
UUID.randomUUID().hashCode(),
deliveredIntent,
PendingIntent.FLAG_UPDATE_CURRENT
After
val deliveredPendingIntent = PendingIntent.getBroadcast(
context,
UUID.randomUUID().hashCode(),
deliveredIntent,
PendingIntent.FLAG_IMMUTABLE
Best Regards
The text was updated successfully, but these errors were encountered: