Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnRequestPermissionResult is not called after granting permissions #452

Open
arafi123 opened this issue Apr 8, 2024 · 0 comments
Open

Comments

@arafi123
Copy link

arafi123 commented Apr 8, 2024

I have MainActivity that extends UnityPlayerActivity and implements various listeners for Temi. I already have OnRequestPermissionResult for MainActivity for Bluetooth permissions and also have following overriden method for handling the result of Temi permission. Somehow after requesting for Settings permission, the method is not called. What could be wrong ?

public void onRequestPermissionResult( Permission permission, int grantResult, int requestCode)

I have implemented following things:

  1. Import listener permission.
  2. Added OnRequestPermissionResultListener in MainActivity
  3. Add and remove the listener in OnCreate() and OnDestroy()
  4. Overriden method for handling the result.

Any help will be greatly appreciated.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant