Newsfreak Doc
Product LinkInstallation PlansSupport
  • Introduction
  • Changelogs
  • Getting Started
  • 🌐WordPress Setup
    • 1. Install Plugins
      • 1.1 JWT Authentication Setup
    • 2. Import Newsfreak Assets
  • 📱App Setup
    • 1. Flutter Installation
    • 2. Code Setup
    • 3. Push Notification Setup
      • 3.1 Android Notification Setup
      • 3.2 iOS Notification Setup
      • 3.3 OneSignal Setup
    • 4. App Information Setup
      • 4.1 Change Package Name
      • 4.2 Change App Name
      • 4.3 Change App Icon
      • 4.4 Change Splash Icon
      • 4.5 Change Logo
      • 4.6 Change App Theme Color
      • 4.7 On-Boarding Setup
      • 4.8 Update Website URL
    • 5. Run the App
    • 6. Releasing the Android App
      • 6.1 Generate Keystore File
      • 6.2 Uploading At Google Play
    • 7. Releasing the iOS App
  • ⚒️Additional Setup
    • 8. Multi-Language Setup
    • 9. Ads Setup
      • 9.1 Admob Setup
        • 9.1.1 Admob Setup for Android
        • 9.1.2 Admob Setup for iOS
      • 9.2 Custom Ads Setup
    • 10. Social Logins Setup
      • 10.1 Google Login
      • 10.2 Facebook Login
      • 10.3 Apple Login
    • 11. Deep/App Links Setup
      • 11.1 WordPress Setup
      • 11.2 Android Setup
      • 11.3 iOS Setup
    • 12. Featured Posts Setup
    • 13. Video Posts Setup
    • 14. Home Categories Setup
  • ✨Updates
    • Migrate to v2.2
    • Migrate to v2.1
    • Migrate to v2.0
  • 🎇Issues & Fixes
    • 1. No Internet Issue
Powered by GitBook
On this page
  • Android Setup
  • Generate Debug Certificate
  • Generate Release Certificate
  • iOS Setup
  1. Additional Setup
  2. 10. Social Logins Setup

10.1 Google Login

Last updated 10 months ago

Go to your Firebase console>Your Project>Authentication>Sign-in-method and enable Google and save it.

Android Setup

  1. You have to configure some stuff for Google sign-in. Go to the Google Cloud Console.

  1. Make sure you are signed in with the same account with which you have created the Firebase project. Also, make sure that on the top-left corner, your project is selected for which you are filling this consent.

  1. Now Click on the OAuth consent screen tab > External > Create and start filling out the form.

  2. Enter the Application name, Application logo & Support email.

  1. In all these places, you have to enter the same link starting with https:// then your app domain name which I have marked with green below.

  2. Then, scroll down and fill in the Application Homepage link, Application Privacy Policy link, and Application Terms of Services link.

  1. Save the form by clicking on the Save button.

Generate Debug Certificate

  • To generate a debug certificate, run this command on your terminal from your app

    root directory.

keytool -list -v \
-alias androiddebugkey -keystore ~/.android/debug.keystore
keytool -list -v \
-alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore
  • Use ​android as a debug password when the terminal asks for a password.

  • Copy the SHA1 certificate code and go to Firebase Console > Your Project > Project Settings and click on the android icon and then add the SHA1 code by clicking ​add fingerprint​ button. Look at the picture below:

Generate Release Certificate

To generate a release certificate,

  • Run with replacing your alias_name and keystore_location.

keytool -list -v -keystore keystore_location -alias alias_name

Your alias_name is upload and keystore_location is the path(directory) of the upload-keystore.jks file.

  • After that, you will get a SHA1 code. Copy that code and add it to your Firebase Console > Project Settings > Android, where you previously added a debug SHA1 code.


iOS Setup

From the Source code, go to the ios/runner/​GoogleService-info.plist​ file from your IDE or from Xcode and copy the REVERSED_CLIENT_ID. (See the picture below)​

  • Go to the i​os/Runner/Info.plist​ file and replace the R​EVERSED_CLIENT_ID here.

Google Cloud Console:

If this command doesn’t work, then go to this and copy the debug command from there according to your os.

⚒️
https://console.cloud.google.com/apis/credentials/consent?project=travel-hour-252505
link