need references to explanations of google api client_service.json usage. RRS feed

  • Question

  • User333121 posted

    i created this file but dont really understand the clientid and clientsecret fields and how to add it to the vs2019 solultion and its shared lib, android, ios and uwp projects.

    { "installed": { "clientid": "diyapps-????", "clientsecret": "AIcfhg-h5kGoDBBJldl7MTQzezrMRoGbsmdsI", "redirecturis": [ "http://localhost", "urn:ietf:wg:oauth:2.0:oob" ], "authuri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://accounts.google.com/o/oauth2/token" } }

    Monday, May 11, 2020 3:42 PM

All replies

  • User369978 posted
    1. Install the package you want to integrate from nuget .

    2. Download the json file from Google developer site.

    3. Add json file into project and set the BuildAction as GoogleServicesJson .

    You can Google Xamarin Firebase Tutorials - Save Data to Firebase Database and watch the tutorial for firebase from YouTube video .

    Tuesday, May 12, 2020 9:38 AM
  • User333121 posted

    there is no googleservices.json buildaction: see my attached project explorer

    Tuesday, May 12, 2020 12:11 PM
  • User369978 posted

    Try to save all and then Close Solution , reopen the project .

    Wednesday, May 13, 2020 1:26 AM
  • User333121 posted

    it fails at run time when my gdhelpger.cs google code issues the gdconnect method. that method throws this exception: System.IO.FileNotFoundException: 'Could not find file 'C:\AppDev\Xamarin\DIYApps\DIYLvad\DIYLvad\DIYLvad.UWP\bin\x86\Debug\AppX\client_secrets.json'.'

    Wednesday, May 13, 2020 8:37 PM