Game Center challenges feature - ios

When implementing Game Center, do we need to implement all features such game challenges. I have implemented Invite and Autoplay. But just curious, do we need to handle all features?

No, you don't need to implement all features. But for the most part challenges are handled automatically if you have set up achievements or leaderboard scores. Game Center will send your app messages about challenges (if it is in the foreground), but in general it handles the outcome without your app knowing about it. (So if you submit a new score to a leaderboard which completes a challenge, it will notify the challenger that their challenge has been completed).

Related

Simple Login Form in cocos2d

It would be appropriate to include significant account-specific features from Amazon and not just an authentication method in order to be in compliance. You may also implement your own optional registration, iCloud or Game Center as another option.
Great Apple rejected my game 6 times due the above reason, first of all, they rejected my game because they said it need a user registration to save purchased data even if user changed the device and they can access all purchased things if he have a registered user id with the game, i done the user registration using amazon login sdk, and three other games approved with the amazon login, but this game rejecting showing the above reason., is there any sample login view form for cocos2d for user registration? i dont know how can we do a login with iCloud or game centre. all i want to do is a simple login form for cocos2d.IS there any samples out there how to make a login form using iCloud or game centre ,, i have some ,but they al are native iOS sample, cocos2d samples is not there.
hope anyone can help me to get rid of this situation.,

iOS development different user permissions get different features

Can I have one app that changes depending on user permissions. For example if I were a paying user I would be able to login to the same app and ONLY be able to SEE and play tetris, however, if i were a free user i would login to a free account and ONLY be able to SEE and play pong. Essentially having two apps put into one and a person can choose between the two games by logging in or logging out. If so, how can I approach this?
edit: I have a custom TBC involved. Is it possible that it changes too depending on a user's permission?
edit2: Sorry... Also Would it make my app unreasonably big and slow? Since I would have so many more MVC objects (essentially at least twice the size since I would need to create an object for a subscriber and a freeuser?)
There are several ways to achieve this, all you need is to create and store some specific flag, for example isUserPremium and check it on the initial view controller or in AppDelegate. Than depending on it you can lead user to different view controllers.
You can put in-app Purchase inside your app. You can put Consumable In-App Purchase. And then with NSUserDefaults value, you can show respective games to user. Eg, if their value is false then show pong game otherwise show tetris game. For more details on how to integrate in-app Purchases follow this Raywenderlich's tutorial

Game Center list all achievements for current user

I would really like to know what information can I get for logged in user from Game Center.
Is it possible to get all achievements that user has in Game center? And I do mean all of them, including the achievements in other games?
What about all the games user has played?
I cannot find any information about this in Apple docs, so I am assuming Apple keeps this to themselves.
What information is available to us, outside of our own application?
Thanks for your help!

Game Center achievement behavior for multiple account game

Let's say that you develop an iOS game that allows the user to login and log out of different accounts using in-house account system. For example, you could login using Facebook, or email/password combination.
What is the best way for this game to handle Game Center achievements? How should situations with logging in and out handled?
Regardless of your in-house account management system, the associated user will need to login to Game Center. Unfortunately you cannot force a Game Center logout via iOS; this is something the user will need to do on their own.
As far as tracking achievements goes, let Game Center handle all of that. Your real challenge is going to be getting the user to explicitly launch the Game Center standalone application to sign-on & sign back in, either within the GC app or via your app's GC [login] presentation.
In order to ensure proper achievement progress is reported across users' accounts, the user logged into your app with their in-house account must also be logged in with their Game Center account. One way to at least ensure you don't cross the streams regarding achievement tracking & reporting is to have the user enter their Game Center display name while logging in via the in-house system.
Once past the in-house authentication, let Game Center player authentication take place, retrieve the local player's playerName and compare. If they match, flag this and track / report achievement progress normally.
If they don't match, it's up to you whether to prompt the user again for this information to check again. At the very least you should communicate to them that the in-house account does not match the Game Center account, and to move forward they will need to launch the Game Center app to logout & login. Otherwise, flag the mismatch, and use this logic to bypass achievement reporting (and potentially other GC functionality).
There's a post here with some more ideas.
Good luck!

Statistics on Game Center Achievements

Is there a way to gather/download/view statistics on my iOS app's achievements for all of my users?
For example, is there a way I could see the percent of my app's users that have completed each achievement?
Not using Game Center. You could certainly use another system of tracking this.

Resources