How can I logoff from game center from my app - objective-c

i'd like to know a way to logoff from game center from my app,
i know to authenticate is
[[GKLocalPlayer localPlayer] authenticateWithCompletionHandler:nil];
is there a similar way to logout?
thanks!

I've looked through the developer documentation, and it doesn't look like it. You could probably find a private API to do it, but then your app would be rejected from the store, rendering Game Center functionality pointless.

Related

How to stop other apps push notification from react native app? [duplicate]

A React Native-specific version of this question was asked, but not answered React-Native: How can I disable all push notifications while my app is active?
Essentially, is there a way to remove interruptions while my app is in the foreground? Ideally there would be a "focus" state I put the app into that minimizes disruptions, but I can't find an API like that.
Concretely, part of my app involves meditation states. Getting popups during one of those is distracting, so I'd like to disable banners and alerts while one of those sessions is running.
Happy to hear it's not possible, just haven't actually found that answer yet.
No, you don't have an API or control over other apps notifications. But surely you can control your app notifications. You can handle those notifications without prompting. Let me know if this is helpful.

React Native - Detect Physically Broken Screen

Im trying to develop an app in react native that can detect if the screen of the user is physically broken. It's for an insurance company that wants to check if someone's phone isn't already broken when they insure it.
Obviously I can just ask the user to take a picture of the phone pointing at a mirror and validate it my self.
But instead, i've been wondering if even such technology exists or maybe there is work around for the matter. Probably painting the entire screen to detect pixel by pixel if any is broken but I don't know how to do that or what to use.
If anyone knows if a way exists I would be very grateful.
TL;DR- No.
Not only in react native, even in native android or ios api there is no such thing to check screen damage.
As far as your app is concerned, user involvement is necessary to detect screen or touch damage.
Just display different colors on screen and ask user to check for any discoloration or “dead” pixels.
And for touch, ask user to tap different parts of screen or drag finger accross and check for touch misses or bad areas.
There are some good touch testing apps available on the play store, give them a shot.

how to access voice memo in app

I know that in your app you can access you ipod music and your camera form an app you make. I was wondering if at any possible way it was possible to use the voice memos app from your app. For example, use voice memos they have to use it as the app's background song or sound, it would be something that would give the user more customization to the way the want there screen to look or sound. Thanks, and if its not possible please let me know. If it is possible then please explain how. Thank you!

How do you put Game Center Achievements into your iPhone app?

I am very new to Xcode and Objective C. So I need help with the Game Center achievements. I have already set it up on the iTunes connect but don't know how to make them work in my game.
Also, I want to make it so if the user presses a button they get an achievement on Game Center. I have done nothing so far with Gamekit except for import the framework.
Thanks,Kevin
Apple has numerous videos and documentation you can look through to get this done...
https://developer.apple.com/devcenter/ios/gamecenter/
I don't recall the exact API call you will need but you can find it on the Apple developer portal.

Facebook sdk login appears whenever UITable is used

I have implemented Facebook into my app but now I find that whenever I try using a UITableView elsewhere, the Facebook Login screen appears in the view instead and it is covering up the table that should be there. It is like the login screen functionality is in the background (I cannot interact with the login screen) but it is displayed in the foreground?
I implemented everything as the tutorial on fb shows... Including what is needed in the app delegate. If anyone knows what code I need to modify within the Facebook sdk it would be much appreciated!
Thanks
P.S. If you would like the code... I can post its just there is a quite a bit of it
Make the UITableWhite and it seems to cover up the Facebook