Open daadu opened 2 years ago
Ok, the issue seems with android:launchMode="singleInstance
in my app's android manifest [it is android:launchMode="singleTop"
in the example app].
Once I changed to singleTop
it started working. Any idea why is that a case? Is it a bug?
The stacktrace doesn't show anything related to this package?
Yes
The stacktrace doesn't show anything related to this package?
Yes, released it after some debugging. It has to do with the launchMode
set by the activity. for some reason, onActivityResult
is not called when app launched with launchMode=singleInstance
onActivityResult
is being called with requestCode: 0, resultCode: 0, data: null
when android:launchMode="singleInstance"
set on these devices.
I have same issue. Can't pick contact, I have put an try catch then it throw an error UserCancelledPickingException: The user hit the back button instead of selecting a contact @DRSchlaubi
Update: After changed android:launchMode="singleInstance" -> android:launchMode="singleTop" it worked
From dart the
await FlutterContactPicker.pickPhoneContact()
method call gets stuck and never return. Also I noticed that the permission is asked as expected.