How to use GameCenter inside a React Native app
Asked Answered
T

3

9

Im building a react native game app and I want to use game center to log the player in. To be more specific, all I want is the unique id that game center provides for the player. I plan on using firebase to store the information but I want the log in experience to be quick and easy. I do not know objective C so im hoping somebody has figured out how to do this already.

Traceytrachea answered 17/2, 2016 at 19:6 Comment(0)
U
1

Here are some links I found, hope this helps!

https://developer.apple.com/game-center/

https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/GameKit_Guide/GameCenterOverview/GameCenterOverview.html

Unplaced answered 17/2, 2016 at 19:16 Comment(1)
These links do not mention React Native anywhereMargiemargin
T
0

I created a package for it this weekend 😀. https://github.com/garrettmac/react-native-game-center

Thorax answered 24/9, 2017 at 4:3 Comment(2)
A link to a solution is welcome, but please ensure your answer is useful without it: add context around the link so your fellow users will have some idea what it is and why it’s there, then quote the most relevant part of the page you're linking to in case the target page is unavailable. Answers that are little more than a link may be deleted.Fonzie
@Thorax does this library still work?Laudianism
S
0

Old thread, but for what you want to do the easiest thing would be to use Firebase Auth and enable GameCenter login.

Once enabled, you will need to configure your user's login with the following documentation.

enter image description here

Sabbat answered 6/11, 2020 at 14:41 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.