robotemi/sdk

OnRequestPermissionResult is not called after granting permissions

arafi123 opened this issue · 0 comments

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