Open ncltg opened 2 years ago
+1! There are multiple issues with iOS Remote notifications, which makes this library for Kotlin Mobile development useless.
@Alex009 we've just merged the Android support for Remote notifications. Can we do the same for iOS as well 😁
@petarmarijanovicfive you can create PR with fixes.
i think now we not have case NotDetermined
just because android can't tell us same state
i check now on 0.15.0 dev version and i see that getPermissionState
return NotDetermined
on iOS on clean install
DeniedAlways will be after trying to request permission and user decline this request
The issue
When calling
permissionsController.getPermissionState()
withPermission.REMOTE_NOTIFICATION
, I always get the same value :DeniedAlways
.I'm testing it by deleting completely my app for my test phone. At the time the call is made no authorization has been requested by the user yet. In fact, just to be sure I also checked into the settings of the app that the Notification setting row does not appear.
What I tested
I first tested to prompt the notification status by logging it in my iOS app that way :
Which gives me this output :
Everything is fine here so I moved on with trying to get the value myself from my KMM/iosMain code :
I get the right result even in the kmm side, while at the same time I still get
.DeniedAlways
from moko.permissionsAny idea where this issue could originate from ?