Skip to content

[iOS] Push Notifications with Safari APN not being sent #129

Discussion options

You must be logged in to vote

With @unamashana help I was able to make it work.
Notifications are being send via APN.

The problem was in Safari APNs configuration.
p8 certificate should have format like "-----BEGIN PRIVATE KEY----- key -----END PRIVATE KEY-----" and environment should be set to "production".

When you install your app in debug mode and send notification via MagicBell dashboard you should now see event in logs with message "BadDeviceToken". MagicBell environment doesn't match with your app environment so it cannot send notifications.
When you have app installed from Testflight (environment here is production) everything work and notifications are delivered to phones.

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@unamashana
Comment options

Comment options

You must be logged in to vote
1 reply
@unamashana
Comment options

Answer selected by AgnieszkaMlynska
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Questions
Labels
None yet
2 participants