-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Hi I have an issue on using this SDK for Android 12 with Flutter & I have used the recent version of this SDK 6.4.0.
So after I scanned MRZ on E-Passport, the app force close and show this error :
Unable to resume activity : java.lang.IllegalArgumentException: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
I have check on Android official website about Pending Intent, that we should add FLAG.IMMUTABLE or FLAG.MUTABLE when create PendingIntent, here's the link :
And I also have checked that this SDK file "FlutterDocumentReaderApiPlugin.java", still not implement PendingIntent like the official docs mentioned above, here the existing code on the file :
PendingIntent pendingIntent = PendingIntent.getActivity(activity.getApplicationContext(), 0, intent, 0);
So what do you think?does this SDK need to implement that for support Android 12?
Or do you have any other solution about this issue?
I have followed the example, but i think it's use different implementation.
- OS: Android
- OS version: 12
Thank you, please let me know if you need any additional information.