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
When running the app, permission is asked, but after OKing, mapAccessGranted is never called.
I have debugged the app and have found that, Ask.getAnnotatedMethod() gets called and seems to find the callback method OK, adding it to permissionMethodMapRef. So far so good.
However, when Ask.invokeMethod() is called, permissionMethodMapRef.get() is null, throwing the Exception at line 229.
Seems the WeakReference has been destroyed in the meantime.
Is this a kotlin specific issue? Any suggested workaround?
The text was updated successfully, but these errors were encountered:
Using this pretty simple kotlin code:
When running the app, permission is asked, but after OKing, mapAccessGranted is never called.
I have debugged the app and have found that, Ask.getAnnotatedMethod() gets called and seems to find the callback method OK, adding it to permissionMethodMapRef. So far so good.
However, when Ask.invokeMethod() is called, permissionMethodMapRef.get() is null, throwing the Exception at line 229.
Seems the WeakReference has been destroyed in the meantime.
Is this a kotlin specific issue? Any suggested workaround?
The text was updated successfully, but these errors were encountered: