Game Center sandbox on multiple devices - iphone

I am building an app that uses Game Center. To test I was using my iPhone and the simulator to log in with different accounts. I now want to use my wife's phone to test with me and when I open the app it's not logging into the sandbox.
It shows the game enter modal logged in but play now and invite buttons are greyed out and it says unauthenticated user.
How do I make my wife's iphone use Game Center sandbox.
Thanks

As a developer, you are required to create a separate Game Center account for Sandbox. At any given time, you must choose whether to log into Sandbox for testing, or into the live environment. Start by launching the Game Center app and logging out the currently authenticated player. After this, run your game or another Game Center-enabled game. Depending on how that app is distributed, you enter different credentials. If that app is provisioned for development, enter your test account information (logging you into the Sandbox). Otherwise, enter your live account information (logging you into the live environment.
Just log out of Game Center and launch your app. Then you enter you log into your test account.
From Apple.

Launch Gamecenter -> Me -> Tap on Account: -> Sign Out. Sign in with your sandbox account.

So it ended up being that I wasn't opening the modal sandbox sign in from my app. I made a code change that upgraded the call to display the login to support IOS6. The previous method I was using was deprecated. Therefore the new code I put in forgot to present the modal for sign in which left me hanging when I went into the app.

Related

How to move app one apple developer account to another account?

Now I could move apps from one apple developer account to another apple developer account.
But when I try to move I couldn't transfer some apps. I attached the image below. When I click the done button its redirect the app information pages.
In one app I could able to move to further process but in another app I couldn't it redirect's to the app information page could anyone has the solution for this.?
You have to remove all builds and testers from Testflight to continue. (See the missing tick in the screenshot)

Unable to use Google Assistant App on Work Profile

I am trying to use the Work Profile version of the Google Assistant app, but I cannot get past the "set default assist app" screen in order to start using Google Assistant. It works on some phones, but not on my Pixel 3 or a Pixel 2 XL that I tested it on.
Steps to reproduce:
Tap on the Work Profile Google Assistant app, and a screen appears to prompt the me to set the default assist app
Tap on "Settings".
When I tap on "Assist App", the "Permission Controller" screen opens briefly and then closes immediately.
Finally any more taps on "Assist App" again has touch feedback show nothing.
Image of screen
Make sure that your work account as permission to access your voice.
Go to the Activity Controls page.
Sign in with your Google account
Enable the following permissions:
Web & App Activity
Under Web & App Activity, check the box next to Include Chrome history and activity from sites, apps, and devices that use Google services.
If that doesn't work, this can be due to limitations or restrictions with work accounts. Contact your admin.

mobile ad optimisation for app installs not available

I've set up a new fb app for an IOS app we've launched. When setting up a mobile ad in FB I can't choose the "optimize for app installs" option, only clicks or impressions.
It works fine for another app and can't see any difference in the fb app and ad setup.
I'm guessing the difference must be in the IOS code, but it seems strange the fb app and ad setup would detect that?
So, essentially the question is, what is the reason I can't choose the "optimize for app installs" when creating a mobile app?

in-app purchase sandbox mystery: phone left in state unable to initiate purchase

I have an ad-hoc deployment of my iOS game, which includes in-app purchase. It is correctly set up with a purchasable item on itunes, and I have test users on itunes. I am able to successfully test it with my own iPod, and with a friend's iPod -- I can choose the item to purchase, get the price info correctly from the Apple server, choose to buy, enter the Apple ID and password for one of the test users, an the purchase completes successfully.
Another friend also installed the game on his iPhone and was starting to look at in-app purchase, but he followed an incorrect procedure, an now we can't get in-app purchase to work on his iPhone at all.
Specifically, he correctly signed himself out of the Store via the Settings application, then ran the game and chose the item to purchase. It correctly retrieved the price information. However, when the standard UI popped up and where he was supposed to click "Use an Existing Apple ID" he chose "Create a New Apple ID" by mistake. This brought him out of the game (game was sent to the background) and over to the web page to fill in the details for a new user. He realized that was wrong and returned to the game. But when he then tried to repeat he process, after retrieving the price info (again successfully), when he went to initiate the purchase, it errors out and never shows the standard UI where he can choose Existing Apple ID or Create New. So it's like his phone was left in a funny state. He tried rebooting the phone, reinstalling the app. Same problem. Then I recommended that he log in to the Store via the Settings app using his regular account, download a couple free apps, and then log out of the Store via the Settings app and try again. My thought was that this full process would somehow "clear out" whatever bad state his phone was in. But no dice. Same problem.
We can't figure out what state his device is in such that it fails when going to the purchase step of this sandbox in-app purchase process. I am still able to successfully complete the process on more than one other devices, so I don't think it's a problem with the state of the purchasable item or test users on itunes. It seems to be something specific to his device. I also had him using iPhone Config. Utility to watch the Console log as he went through this process. Very little was seen -- just an error code coming back after trying to initiate the purchase. (Nothing about PIPELINING errors and other web-service type errors that I've seen before when in-app purchase wasn't set up correctly on the sandbox.)
Any ideas on what state his phone could be in with respect to (sandbox) in-app purchase, and how we can clear it out?
Reset your network settings (Settings -> General -> Reset -> Network Settings)
Turn off your iPhone and turn it on again.
Wait for 15 min (This is the time iOS caches AppStore credentials)
Try running the app again.

Create a sandbox account on Game Center on iphone

I have been searching for a few days now an cannot find a thing.
I have an ipod touch 4g and have just started adding Game Center to a game i'm working on.
This works fine in the simulator, but when i try to test on my device (running the app in debug mode), the game isn't recognised by Game Center.
I've seen on other forums that i should be in sandbox mode, but i cant seem to enter it on my device.
Please could someone tell me how to enter SB mode
Thanks
What you do is:
Log out of Gamecenter.
Run you app on the device (or the simualtor)
When it asks you for your account details in your app, create a new account. That will be a sandbox account.
It helps to create the sandbox account in the sim first, just to be sure you aren't really create a Gamecenter account.
To be fully sure of creating a sandbox account, run Gamecenter on the simulator and create an account there.
From the iOS Provisioning Portal:
In order to utilize the Game Center
Sandbox for testing, you must also
create a new Game Center Test User
account in the Game Center application
on your device.
All explicit App IDs are automatically
enabled for In App Purchase and Game
Center. Wildcard App IDs and
duplicates of existing explicit App
IDs are ineligible for In App Purchase
and Game Center.
Basically there are two steps:
On a development enabled iOS Device, create a new Game Center account.
You must sign your app with an App ID in the form com.yourcompany.yourappname, you can't simply use the wildcard development id/provisioning profile (in the form com.yourcompany.*) because Game Center won't recognize your app otherwise.
It seems this whole process is simpler now in iOS 8. All I had to do was go to Settings -> Game Center and under the Developer section, enable Sandbox. At that point I was able to use Game Center in the development build of my game with my personal account and also with a sandbox account just fine.
Although what Kendall explains used to work in the past, from iOS9 it seems you have to create the sandbox accounts from iTunesConnect.
iTunesConnect -> Users And Roles -> Sandbox Testers
Click on the (+) icon to create a new user.
Start your app from XCode, and when prompted, use the sandbox e-mail account and password.
Follow prompts to create the Game Center account.
Had the same problem. This worked for me:
1. log out GC, UNINSTALL APPSYNC if your're jailbroken, kill all processes.
2. create adhoc build, sign it with an appropriate entitlement, upload to your webserver, whatever.
3. download/install this ipa to your device and run, when asked create new account, or use existing - it will be registered (or created if new) inside sandbox.
Sadly, Apple deprecated the sandbox environment for Game Center since iOS 9, see
As part of the release of iOS 9 and El Capitan, the Game Center development sandbox has been eliminated, allowing all pre-release development to occur in exactly the same server environment as released games.
Technical Note TN2417: Game Center: Life without a Sandbox
WWDC 2015 Session: Going Social with ReplayKit and Game Center
Today, if we want to test with a new game center account, we need to create new apple ID with an actual email address for two factor authorization.
The simplest fix that should work for many people is as follows:
Close any Game Center enabled games
Open up Game Center
If you're logged in to a sandbox account, log out
If not, create a dummy sandbox account, then log out once done
Restart Game Center
Try to log in using your real account, that may fix things
If not, make sure you're logged out, then quit Game Center
Start a Game Center enabled game, and try to log in your real account