question

Daniel González avatar image
Daniel González asked

There is no way of unregistering users from push notifications

It doesn't seem to be a method to unregister a user from push notifications.

My use case is a single user app with Facebook and Google logins.

A user installs the app on their Android device, and logs in. This creates a new user, with a Facebook account and an AndroidDevice linked. Also, registers it for push notifications.

The user uninstalls the app and gives the Android device to another person. The other person installs the app again, and registers using Facebook.

I can't assume that the same AndroidDevice is the same user, because those were different Facebook accounts. So I create a new user and link the Facebook account, and link the AndroidDevice, and of course it registers for push notifications.

When using LinkAndroidDeviceIDRequest with the ForceLink parameter set to true, the first user is unlinked, but the push notifications information remains, so the same device will receive push notifications for both users.

This is pretty unconvenient. And I can't seem to find a way to solve it with the current API.

apisPush Notificationsandroid
10 |1200

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

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

Currently, PlayFab doesn't provide a build-in API to unregister the Andriod devices form push notification. You can try to add a feature request about it. About removing a device from a device group that receives notification, you can check this google doc for more.

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

brandon@uprootstudios.com avatar image brandon@uprootstudios.com commented ·

@Sarah Zhang What about on iOS? If User A logs in to our application on iOS and logs out, and then User B logs in, will User B receive push notifications for User A?

1 Like 1 ·
esenkleiter avatar image esenkleiter brandon@uprootstudios.com commented ·

Any update to this?

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.