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.
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.