Open Gennki opened 5 years ago
upupup
@330676687 Did you try to test without adding to disposables ?
Yes, I tried it, but none of them worked. @mrArtCore
This is weird. I suppose that something strange with Your FlatterActivity and eventDelegates.
(I'm not familiar with Flatter)
I would suggest you to log your onActivityResult()
and onRequestPermissionResult()
methods. Are they being invoked inside FlatterActivity ???
Also add logging to RxPermission chain doOnSubscribe()
doFinally()
etc. To be sure that subscription is really happening.
@Gennki @330676687 any updates about issue ?
as an alternative, I'm using the FlutterFragmentActivity
My
MainActivity
extends theFlutterActivity
, When I try to writeval rxPermissions = RxPermissions(this)
in myMainActivity
, I find that the type of the parameter needsFragmentActivity
, so I modified the code ofFlutterActivity
and letFlutterActivity
extends theAppCompatActivity
, but I found that subscribe does not work.Here is my
FlutterActivity
code:the
FlutterActivity
in flutter sdk extendsActivity
.I just change
Activity
toAppCompatActivity
.And here is my
MainActicity
code: