firebase / firebase/firebase-cpp-sdk

[FR]: Reuse GameCenterAuthProvider implementation on macOS

未关闭
#627 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
api: auth type: feature request
主要语言
C++
星标
326
派生
137
平均合并
3 天 9 小时
30 天内合并 PR
5

描述

### Feature proposal

* Firebase Component: Auth

[GameKit](https://developer.apple.com/documentation/gamekit?language=objc) is supported by Apple on both iOS and macOS and its [Game Center authentication API](https://developer.apple.com/documentation/gamekit/authenticating_a_player?language=objc) is 99% reusable between OSes, with the only exception being `UIViewController` vs `NSViewController` parameter in [`GKLocalPlayer:setAuthenticateHandler`](https://developer.apple.com/documentation/gamekit/gklocalplayer/1515399-authenticatehandler?language=objc). 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](https://developer.apple.com/support/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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。