![](/img/trans.png)
[英]How to create order_id on firebase for razorpay? I am using react-native with firebase for mobile application
[英]How can I successfully perform Google-login using firebase in react-native application for android and iOS both if I am having different client IDs?
我想在 react-native 中使用 firebase 執行 Google 登錄。
對於 android,我從 google-services.json 獲取了 Web 客戶端 ID,對於 IOS,我從 GoogleService-Info.plist 獲取了 Web 客戶端 ID
現在這兩個 ID 不同,所以現在我可以一次在 android 或 iOS 中執行登錄。
如果我想在 android 和 iOS 中同時執行登錄,我應該怎么做,盡管兩者都有不同的客戶端 ID?
您應該使用正在執行的平台的配置數據初始化 Firebase SDK。 所以這通常意味着您在應用程序中包含每個平台的配置,然后在運行時為當前平台包含 select 配置。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.