Permissions during configuration changes. #91
Unanswered
farhazulmullick-pw
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
controller .providePermission(permission) throws
dev.icerock.moko.permissions.RequestCanceledException
onConfiguration changes like screen rotation. Activity /WCan request only one set of permissions at a time
steps:
Code
To fix this i called entire scope.launch() with a strategy like rememberSaveble {}. Now exceptions were not thrown but after a screen-rotation onGranted(), onDeniedAlways() and onDenied() is not being called.
Can you please help me how can i handle for configuration changes?
Beta Was this translation helpful? Give feedback.
All reactions