Giter Club home page Giter Club logo

Comments (3)

matiaskorhonen avatar matiaskorhonen commented on September 4, 2024

I'm no longer working on a project that uses Google Fit but you need to only call the authorize function once the user has indicated that they want to share their data. What form user onboarding takes is up to you.

Also, tagging anyone who has ever contributed to the repo is pretty bad form and very rude.

from react-native-google-fit.

marzhill avatar marzhill commented on September 4, 2024

I'm no longer working on a project that uses Google Fit but you need to only call the authorize function once the user has indicated that they want to share their data. What form user onboarding takes is up to you.

Thank you for your fast reply! Calling the authorize function isn't what will solve this because the solution I need is to allow the new users to dismiss the Google OAuth pop up when it first appears and allow the user to proceed into the app without signing into Google OAuth.

All users login with their email in my mobile app, so they don't need to do Google OAuth login unless they want to share sensitive health scope data. It's this inital Google OAuth pop up that I want to be optional for users when they first login to my application...

This is an example of the screen I am talking about (from google, not from my app) - but this is the screen that we want our users to be able to skip if they want to avoid signing into Google.
Screenshot 2023-06-04 at 5 39 44 pm

Can you help?

Also, tagging anyone who has ever contributed to the repo is pretty bad form and very rude.

Sorry @matiaskorhonen it's my first time πŸ˜Άβ€πŸŒ«οΈπŸ˜³

from react-native-google-fit.

stratosEft avatar stratosEft commented on September 4, 2024

Hi @marzhill , to make this optional you should not initialise the google fit scope authorization method unless user selects it. This means you should add a button in order users to choose if they want to connect to google fit or not.

from react-native-google-fit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.