question

oanagoge avatar image
oanagoge asked

Is there a way to block login from specific app versions?

Let's say I want to allow users with app version 1.1 to log in, but not 1.0

Is there a way to do this automatically in PlayFab?

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

·
brendan avatar image
brendan answered

That isn't a parameter in our login calls, so no, there's no way we could block the user based upon that. The way to handle this is to have a Cloud Script handler you call when the client logs in which checks anything you need - version of the client, inventory items of the player (if you need to remove some), etc. - and respond with info you can use on the client to notify the player of any changes needed on their side. So, you could have the client send up a version number, and reply with the information that the client needs to update, so that you can display that to the player.

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.

oanagoge avatar image oanagoge commented ·

Thanks for the quick reply.

It would be a nice feature to have, but there are good workarounds for it too.

I was thinking another easier way may be to put in the target version as title data and compare it on the client side, but that is a bit less secure.

The main concern here is security - e.g. a bug/exploit is found in the current version, and we want to make sure the players can't connect until they upgrade it.

0 Likes 0 ·
brendan avatar image brendan oanagoge commented ·

Yes, having versions for pretty much everything - both client version and data version - is always going to be key, so that you can reliably manage your title. Client side checks are enough for many titles, but if you have a need for security around that (so that people can't stay on an old version thanks to it having an exploit), then a Cloud Script check on login would be best.

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.