Unable to sign in Sandbox gamecenter on iOS 7 - ios7

Since iOS 7 I no longer get the prompt from game center to ask me to log in sandbox mode when I open my application. I searched for a while and never saw any known issues about this and there are no patch notes that says anything about sandbox mode changing. Has anyone encountered this problem?

If you've cancelled game center sign in enough times, the OS disables game center for that game. Prior to iOS7, you could manually sign in again using the game center app, and when you launch your game again it would sign in.
However, in iOS7, it appears that when the OS disables game center for your game, it's completely disabled. I've found that using Settings > General > Reset > Reset All Settings will restore game center functionality for games that have been disabled in this manner.

Copied answer from here: https://stackoverflow.com/a/19291001/1321401 - a bit different question caused by the same issue.
This issue appears to happen in sandbox only.
Got this problem too, and here what I've figured out:
GameCenter shows prompt for login only a few times (3-5), if all prompts were canceled - GameCenter becomes disabled for this app.
In iOS 7 there is a problem: GameCenter disabled state remains even if you login into the GameCenter app itself - application will still receive kind of this error:
error: Error Domain=GKErrorDomain Code=2 GkErrorCanceled: the requested operation has been canceled or disabled by the user
There are two workarounds:
First:
Log out of Game Center through the Settings app.
Reset all settings
After the device rebooted, launch app with development build. After launch the GC Login viewController pops up.
Second (this one helped me):
"Erase All Content And Settings".
Set up as a new device - do not restore from any backups.
Both workarounds are not a viable option for production - I hope there will be a fix from Apple soon.
Most of the info is from to this discussion.

I thought I was trapped in this situation as well. I constantly got the GKErrorCancelled when the game I develop tried to log me into to the Game Center sandbox.
I then went to the Game Center application, and started my game through Game Center. Then, magically, I was successfully signed in. No idea if it was just a coincidence, but maybe this can help someone else who doesn't want to reset the device.

Seems there's been some change recently to work around this. Maybe in iOS7? This answer to a similar question https://stackoverflow.com/a/21231537/11801 suggests:
- quit your app
- use the settings page for gamecenter to log into your sandbox account, then log back out
- open your app and you should now be able to log in

Related

Is it possible to force Chrome to refresh app notification settings when using Notification delegation

In a previous answer regarding Notification Delegation between Chrome and an Android TWA app it was said that:
"If the TWA has notifications disabled in Android Settings, we disable
them in Chrome instead. There's a little bit of latency with how this
gets propagated, but things should get updated on the next TWA launch
at latest.
How exactly Notification Delegation does work?
On my site I am sending the user to androids app notification settings when I find that notifications are not allowed in the browser.
But upon the users immediate return, the changes are not propagated to Chrome (to be expected from the comment above since the TWA is not launched again).
I wonder if there is anyway I can speed this up? Otherwise the user is forced to exit the page completely and restart the app before the permission is granted, which is not a very good user experience.
It seems the only workaround would be to force restarting the application, which is not a great user experience. I have filed an issue on Chromium bugs to track a fix for this: https://bugs.chromium.org/p/chromium/issues/detail?id=1064300

Mac App crashes when I add a Distribution Profile

I've created a Mac App for Mavericks that uses MapKit. It works fine during development and testing on Xcode 5.1. Now I'd like to submit it to the App Store and I need a Distribution Profile which I've created successfully. Trouble is, as soon as I add it to my project, the app doesn't run anymore - it crashes every time without fail with this error message:
When I change back to "no provisioning profile", or to the profile that Xcode created during development, the app runs again.
My question: Is this expected behaviour, or will the app be rejected by the review team? I know that iOS apps don't run with their distribution profiles, but I'm new to Mac Development. Any insights into this way too complex topic are appreciated!
My app was approved - and the crash was indeed no issue for the app review team.
I had a chat with Apple about this who were kind enough to call me back and explain the issue. Looks like this phenomenon is "kind of" expected behaviour: Mac Apps may or may not crash when run with a Distribution Profile.
To avoid this problem, we can add both a Development AND a Distribution Profile to our app, without one having to replace the other. This was news to me. Had I however opened my tired eyes a bit wider I would have perhaps spotted the little disclosure triangle myself:
Perhaps this helps those with the same issue.

Opening wifi setting in IOS7

I'm testing a feature
that when I can't get wifi connection
I will show a alert view and a button to go to system wifi setting
I know that in IOS6.0 this can't be done
but today I downloaded google map with my Iphone 5(IOS 7.0.6)
If I didn't have Wifi and 3g it will pop out a view
and if I press setting I can go to wifi setting
So I think this feature can be done in IOS 7
Can anyone tell me how to do this??
And Sorry about my poor English!!
No this is not possible, the dialog you are seeing is system dialog saying that if you turn on WiFi you will get a better location fix. As a developer you have no control over these dialogs.

ABAddressBookGetAuthorizationStatus in simulator always returns kABAuthorizationStatusAuthorized

I am updating an app for iOS 6 Address Book authorization and have hit a problem in testing. The simulator always returns that authorization is granted. This means I do not see the dialog popup requesting permission and can therefore not test that code path. Ok, use a device instead... The problem there is the OS appears to remember my answer so only asks once. Deleting the app does not help. On reinstalling it has retained the permission setting from before, so again no popup.
Resetting the simulator does not help and if you go into the Privacy settings on the simulator no apps are listed as requesting permission to the Address Book.
The only option I have is use another iOS device that has never had our app installed on for each test. This cannot be how you are supposed to test this. Any ideas anyone?
Thanks
Found it. From the device, Settings->General->Reset->Reset Location & Privacy. So you have to do that for each test

Failed to enter Game Center Sandbox

When developing a game center app, I found the sandbox mode is very unpredictable. My game and two devices worked for a while in sandbox mode. After some code are modified (not game center related), recompiled and started debugging, then I get the famous "This game is not recognized by game center" message.
Delete the app
Sign out Game Center from the Game Center app
Restart debugging the app
does not help.
Any help is appreciated.
If you are sure you are using you're sandbox gamecenter account (signed out of GameCenter using the GameCenter app, signed back in using your in development app when prompted), then I would try the following.
1.Delete the old version of the app on the device(s) and simulator
2.Clean the project in Xcode
3.Redeploy the app to the simulator / devices(s)