You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using showPushNotificationPermissionsWithType method for a pre-validation of the push notifications.
The first time the method is executed works fine. But if I request again the permission check then, the result is always false.
I changed the
completionHandler((status == ClusterAuthorizationStatusUnDetermined),
to
completionHandler((status == ClusterAuthorizationStatusAuthorized),
and worked for me.
The text was updated successfully, but these errors were encountered:
It looks like in - (void) showPushNotificationPermissionsWithType:...
the conditionals (status == ClusterAuthorizationStatusAuthorized)
and (status == ClusterAuthorizationStatusUnDetermined) are switched.
It worked for me when I switched them.
I also needed, in + (ClusterAuthorizationStatus) pushNotificationPermissionAuthorizationStatus
to change the return value in iOS8+ else from ClusterAuthorizationStatusDenied
to ClusterAuthorizationStatusUnDetermined.
I am using showPushNotificationPermissionsWithType method for a pre-validation of the push notifications.
The first time the method is executed works fine. But if I request again the permission check then, the result is always false.
I changed the
completionHandler((status == ClusterAuthorizationStatusUnDetermined),
to
completionHandler((status == ClusterAuthorizationStatusAuthorized),
and worked for me.
The text was updated successfully, but these errors were encountered: