Closed AChevallier closed 12 months ago
Hey, @AChevallier thank you for reaching out, this is just for iOS. We did try to mention it in the docs
You can configure push notifications to request authorization for sounds and badges as well (only on iOS). If a user opts into push notifications, the CustomerIO.showPromptForPushNotifications method will return Granted, otherwise, it returns Denied as a string. If the user has not yet been asked to opt into notifications, the method will return NotDetermined (only for iOS).
We will definitely look into how we could have improved the copy here to be more clear.
Thank you @Shahroz16 ! I missed this line !
I was looking at there, you could explain it there too !
SDK version: "customerio-reactnative": "3.1.7",
Environment: Production
Describe the bug
CustomerIO.getPushPermissionStatus()
on android never returnPushPermissionStatus.NotDetermined
only PushPermissionStatus.Denied or PushPermissionStatus.GrantedTo Reproduce
Expected behavior If this is not a bug then It should be in the documentation. If it's a bug then it should return
PushPermissionStatus.NotDetermined
the first time we install the app, before callingshowPromptForPushNotifications