Appboy / appboy-ios-sdk

Public repo for the Braze iOS SDK
https://www.braze.com
Other
165 stars 140 forks source link

Push Notifications not working on iOS 15 devices (BadDeviceToken) but working on iOS 14 and lower #326

Closed mkeremkeskin closed 2 years ago

mkeremkeskin commented 2 years ago

Report

Describe your environment.

Info Value
Platform Name iOS
Platform Version 15.*
SDK Version 4.4.0 & 4.4.1
Integration Method Cocoapods
Xcode Version Xcode 13.1

What did you do?

We have sent test push notifications from Braze portal.

What did you expect to happen?

We expected to receive push notifications for all our users.

What happened instead?

Users with iOS 15 devices can't get push notifications. But iOS 14 and lower devices can get them successfully.

We are getting BadDeviceToken error on iOS 15 devices.

BadDeviceToken

Some more info

Bucimis commented 2 years ago

@mkeremkeskin We haven't seen this with other customers so this should be an isolated situation. What happens if you temporarily disable Time Sensitive notifications?

mkeremkeskin commented 2 years ago

@Bucimis actually it is not related to Time Sensitive Notifications.

He have found that push notifications not working after installing release version onto development version. Until iOS 15 we didn't encounter this situation. As we observed push notifications are working after uninstalling development version and installing release version.

Maybe somehow Development and Production device tokens mixing up and giving BadDeviceToken. Nonetheless the problem is not related to Xcode version, Braze iOS SDK version or Time Sensitive Notification. Maybe it can be related to how Braze backend works.

Bucimis commented 2 years ago

@mkeremkeskin It seems likely that your push credentials on the dashboard don't match the app's build type, or if you're using a universal p8 cert, that you're sending to the wrong gateway for your app's build type

hokstuff commented 2 years ago

Hi @mkeremkeskin,

Based on the thread above, it sounds like the issues around push notifications not displaying on your device have to do with the push credentials configuration on the dashboard. If you are still experiencing issues or need additional help debugging, please reach out to support@braze.com. I am closing out this issue because reaching out via the Support channels will be more helpful in this case. Thanks!