Closed Stonerub closed 4 months ago
I have the same problem
Apparently it's about the MainActivity being ComponentActivity
and not FragmentActivity
. Changing it to FragmentActivity would be a workaround until Moko team fixes the issue.
Apparently it's about the MainActivity being
ComponentActivity
and notFragmentActivity
. Changing it to FragmentActivity would be a workaround until Moko team fixes the issue.
Thank's, it works for me
For now developer must use FragmentActivity
as root activity to be able display permission dialogs with fragmentManager
. I think in future we can change request permissons approach to rememberLauncherForActivityResult
for compose apps.
Hi, got issue in kmm compose, on android, BindEffect() call this exception:
ClassCastException: com.example.app.MainActivity cannot be cast to androidx.fragment.app.FragmentActivity
iOS works great, without errors. My compose code:
Using moko mvvm. ViewModel permission calling: