How to query Game Center content restrictions?

I make an app that's a single-player game and I'm adding the ability to play online matches.


I'm using Game Center for authentication, but my own server/service for actual play.


Still, I would like to respect the Game Center Content Restriction setting that disallows multiplayer play.


But I don't know how to query that setting, programmatically. Does anybody have any insight? Much appreciated!


Also, are there any settings I should query to disallow short messages between users (potentially strangers)?

Accepted Reply

I took a quick look, but a simple flag didn't jump out that you could check that would tell you the user has disallowed mutiplayer, so at this point I'll assume this isn't a request the API has anticipated for whatever reason.*


Might be you could suss it, however, by one of the calls listed here, which when failed could be interpreted for your means?


https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/GameKit_Guide/Matchmaking/Matchmaking.html


Good luck.


*Might want to file an enhancement request via the bug reporter to see if a hint comes back...if not, consider it letting them know you'd like to see it in the future.

Replies

I took a quick look, but a simple flag didn't jump out that you could check that would tell you the user has disallowed mutiplayer, so at this point I'll assume this isn't a request the API has anticipated for whatever reason.*


Might be you could suss it, however, by one of the calls listed here, which when failed could be interpreted for your means?


https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/GameKit_Guide/Matchmaking/Matchmaking.html


Good luck.


*Might want to file an enhancement request via the bug reporter to see if a hint comes back...if not, consider it letting them know you'd like to see it in the future.