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,
when I call FlutterContacts.requestPermission(); for the first time app crash and error text is:
java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=0, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {my.redant.leaf/my.redant.leaf.MainActivity}: java.lang.NullPointerException
but after first time, it works fine!
tested on both debug and release mode
The text was updated successfully, but these errors were encountered:
nastaran-mohammadi
changed the title
app crash on call FlutterContacts.requestPermission();
BUG : app crash on call FlutterContacts.requestPermission();
Nov 21, 2022
Hi, when I call FlutterContacts.requestPermission(); for the first time app crash and error text is: java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=0, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {my.redant.leaf/my.redant.leaf.MainActivity}: java.lang.NullPointerException
but after first time, it works fine! tested on both debug and release mode
I fixed this issue by adding Permission Handler package and added this code
`
Hi,
when I call FlutterContacts.requestPermission(); for the first time app crash and error text is:
java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=0, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {my.redant.leaf/my.redant.leaf.MainActivity}: java.lang.NullPointerException
but after first time, it works fine!
tested on both debug and release mode
The text was updated successfully, but these errors were encountered: