klinker41 / android-smsmms

Library for easily sending SMS and MMS for Android devices
678 stars 249 forks source link

Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. #199

Open harmindervast opened 3 months ago

harmindervast commented 3 months ago

val sentIntent = PendingIntent.getBroadcast(context, 0, Intent("MMS_SENT"), PendingIntent.FLAG_IMMUTABLE) val deliveryIntent = PendingIntent.getBroadcast(context, 0, Intent("MMS_DELIVERED"), PendingIntent.FLAG_IMMUTABLE)

                sendTransaction.sendNewMessage(mMessage, Transaction.NO_THREAD_ID, sentIntent, deliveryIntent)