简体   繁体   English

适用于两个平台(IOS、Android)的 React Native(+Firebase)上的 Google 登录

[英]Google Signin on React Native(+Firebase) for both platforms (IOS, Android)

I am building an app using React Native with firebase using React Native.我正在使用 React Native 和 firebase 使用 React Native 构建一个应用程序。 So far I am using one code of React Native for both IOS and Android.到目前为止,我正在为 IOS 和 Android 使用一个 React Native 代码。 Now I want to implement Google Signin, later I want to include Facebook and Github logins, but I cannot find how to implement it for both platforms.现在我想实现谷歌登录,稍后我想包括 Facebook 和 Github 登录,但我找不到如何在两个平台上实现它。 As far as I understand it, IOS needs some podfile, and Android requires google-services.json.据我了解,IOS 需要一些 podfile,Android 需要 google-services.json。 I found some tutorials on how to connect Google signin on each platform.我找到了一些关于如何在每个平台上连接谷歌登录的教程。 If I follow both tutorials(including installing potfile and service,json), would it work on both platforms?如果我遵循两个教程(包括安装 potfile 和 service,json),它可以在两个平台上工作吗? Is it possible to have 1 code that works on both platforms?是否有可能在两个平台上都有 1 个代码?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Android 上使用 firebase 登录 Google 无法正常工作 - Google signin with firebase on Android not working 如何在 android 和 Z1BDF605991920DB11CBDF850820 的 react-native 应用程序中使用 firebase 成功执行 Google 登录? - 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? Firebase Google SignIn Ios 更新文档不起作用 - Firebase Google SignIn Ios updated Documentation not working 反应本机谷歌登录 idToken null - React Native Google Signin idToken null 使用Firebase将Google SignIn集成到Android崩溃 - Integrating Google SignIn to Android using Firebase crashes 谷歌登录无法在NEXUS 5上的6.0.1上使用Firebase Android - Google signIn not working with firebase Android on 6.0.1 on nexus 5 在 Android Cordova 上使用 Firebase Auth 进行 Google 登录不起作用 - Google Signin with Firebase Auth on Android Cordova not working Google Signin的Android Firebase身份验证失败 - Android Firebase Authentication for Google Signin fails React Native - React Native Firebase - Google 登录 Android - React Native - React Native Firebase - Google Sign In Android 同时使用Google Signin和Firebase身份验证需要登录两次? - Using both Google Signin and Firebase auth require login twice?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM