question

nielsg-1 avatar image
nielsg-1 asked

iOS 13 push notification token changed

We noticed players no longer registered for push notifications.

And apparently Apple changed the push notification token in iOS 13.

Instead of something like:

<124686a5 556a72ca d808f572 00c323b9 3eff9285 92445590 3225757d b83997ba>

It now returns:

{ length = 32, bytes = 0xd3d997af 967d1f43 b405374a 13394d2f ... 28f10282 14af515f }

Should we do a conversion from the client side or will Playfab update the backend to support the new format?

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

nielsg-1 avatar image nielsg-1 commented ·

I see it's probably something that needs to change client-side.

Many SDK's apparently implemented it wrong.

More info:
https://onesignal.com/blog/ios-13-introduces-4-breaking-changes-to-notifications/

Under: Push Token Retrieval Changes

0 Likes 0 ·

1 Answer

·
Citrus Yan avatar image
Citrus Yan answered

Hi,

So, the client-side must make some modifications to adapt the Push Token Retrieval Changes. Were you able to change the client-side and re-register those players for push notifications and get it working again? And, I also noticed that a new attribute is required on all APNS API headers, which might require some updates from PlayFab backend. I will inform the team to take a look at it, any updates will keep you informed.

3 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

nielsg-1 avatar image nielsg-1 commented ·

We were using the Unity notification package and they just updated the package with the fix. We already tried the fix locally and it seems to work again!

0 Likes 0 ·
Citrus Yan avatar image Citrus Yan nielsg-1 commented ·

Glad to hear that:) If you were to have any issues later on, please let us know:)

0 Likes 0 ·
Citrus Yan avatar image Citrus Yan nielsg-1 commented ·

Update:

The issue that PlayFab backend may adapt to the change that a new attribute is required on all APNS API headers, here is possible work-around:

1) Use the "AdvancedPlatformData" push notification feature

https://docs.microsoft.com/en-us/rest/api/playfab/server/account-management/sendpushnotification?view=playfab-rest#advancedpushplatformmsg

2) Set the "SNS" "content-available" header

https://docs.aws.amazon.com/sns/latest/dg/sns-send-custom-platform-specific-payloads-mobile-devices.html#mobile-push-send-message-apns-background-notification

At the same time, the eg team is assessing this scenario and weigh in on whether it needs to be easier, any updates will keep you informed:)

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.