firebase / firebase-cpp-sdk

Firebase C++ SDK
http://firebase.google.com
Apache License 2.0
276 stars 114 forks source link

[FR]: Reuse GameCenterAuthProvider implementation on macOS #627

Open solodon4 opened 3 years ago

solodon4 commented 3 years ago

Feature proposal

GameKit is supported by Apple on both iOS and macOS and its Game Center authentication API is 99% reusable between OSes, with the only exception being UIViewController vs NSViewController parameter in GKLocalPlayer:setAuthenticateHandler. If you guys massage your iOS implementation of GameCenterAuthProvider to also work on macOS, which from my experience should be pretty straightforward, then we will be able to use GameCenterAuthProvider::GetCredential to exchange it for a Firebase credential and thus have a unified user support across entire apple eco-system. This is particularly interesting to developers offering universal purchase because Game Center user IDs are shared between iOS and macOS thus enabling us to recognize the same user in Firebase across those operating systems.

google-oss-bot commented 3 years ago

I found a few problems with this issue: