pharshdev / sms_user_consent

Flutter plugin that implements Android's SMS User Consent API
MIT License
9 stars 26 forks source link

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

Closed timmid861 closed 2 years ago

timmid861 commented 2 years ago

Tried the plugin with targetSdk set to 31. Upon smsUserConsent.requestPhoneNumber(), above exception is thrown.

Please let know any workaround or update plugin with the fix. Thanks