Open rashmitank opened 3 years ago
Hi all,
I've just released version 3.4.0 of the plugin where I added PR #458. This PR adds information to the README file on ACTIVITY_RECOGNITION permission on Android.
I am not an Android person myself, so have a hard time to follow the conversation above.
However, if there are information that we could put in the README file for others to follow on this, please make a PR for it.
Hi all,
I've just released version 3.4.0 of the plugin where I added PR #458. This PR adds information to the README file on ACTIVITY_RECOGNITION permission on Android.
I am not an Android person myself, so have a hard time to follow the conversation above.
However, if there are information that we could put in the README file for others to follow on this, please make a PR for it.
Even i am getting authorisation not granted error in my debug console please help if you know the correct way tried almost everything my whole day was wasted in this one error
Hi all,
I've just released version 3.4.0 of the plugin where I added PR #458. This PR adds information to the README file on ACTIVITY_RECOGNITION permission on Android.
I am not an Android person myself, so have a hard time to follow the conversation above.
However, if there are information that we could put in the README file for others to follow on this, please make a PR for it.
After handling the permission on click of download button it asks me for an email id and then it stucks in the loading screen and there after nothing happens https://ibb.co/8PvFBJp
still facing this issue
On Thu, Dec 30, 2021 at 6:32 PM shivam17099 @.***> wrote:
Hi all,
I've just released version 3.4.0 of the plugin where I added PR #458 https://github.com/cph-cachet/flutter-plugins/pull/458/commits/15555248a081dbd4ad6486b917c26a885c558b18. This PR adds information to the README file on ACTIVITY_RECOGNITION permission on Android.
I am not an Android person myself, so have a hard time to follow the conversation above.
However, if there are information that we could put in the README file for others to follow on this, please make a PR for it.
After handling the permission on click of download button it asks me for an email id and then it stucks in the loading screen and there after nothing happens https://ibb.co/8PvFBJp http://url
— Reply to this email directly, view it on GitHub https://github.com/cph-cachet/flutter-plugins/issues/336#issuecomment-1003031001, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQII75DTIFWAOOWY3AGAL5TUTRNP3ANCNFSM425II3OA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID: @.***>
Hi all,
I assume that this issue comes up on Android device. The "Authorization not granted" error comes up when the app doesn't have the required permission to collect the data from Google Fit.
I have managed to replicate, fix and come with a solution to this problem. Here goes:
Create a Firebase project for your app
In Firebase under the Authentication tab click "Get Started"
Select Google as a Provider .
- Click Enable
- Fill the app public facing name
- Select the project support contact email address
- Click Save
Navigate to the project settings ( cog wheel icon in the top-left corner )
Under the Your apps section select the Android icon
Fill in your android package name ( make sure it is correct)
Put in your Debug signing certificate SHA-1 To get it simply run:
Linux / MacOS:
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
Windows:
keytool -list -v -keystore "%USERPROFILE%.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
Click Register App
Download the google-services.json
and put it in the {your_app_directory}/android/app directory
You are all set. Bare in mind that you also need to add the sha-1 fingerprint
of your release certificate and redownload the google-services.json
file if you are planing to build the app in release mode.
Hope this helps.
Hi all,
I assume that this issue comes up on Android device. The "Authorization not granted" error comes up when the app doesn't have the required permission to collect the data from Google Fit.
I have managed to replicate, fix and come with a solution to this problem. Here goes:
- Create a Firebase project for your app
- In Firebase under the Authentication tab click "Get Started"
- Select Google as a Provider .
- Click Enable - Fill the app public facing name - Select the project support contact email address - Click Save
- Navigate to the project settings ( cog wheel icon in the top-left corner )
- Under the Your apps section select the Android icon
- Fill in your android package name ( make sure it is correct)
Put in your Debug signing certificate SHA-1 To get it simply run:
- Linux / MacOS:
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
- Windows:
keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
- Click Register App
- Download the
google-services.json
and put it in the {your_app_directory}/android/app directory- You are all set. Bare in mind that you also need to add the
sha-1 fingerprint
of your release certificate and redownload thegoogle-services.json
file if you are planing to build the app in release mode.Hope this helps.
NOPE still the issue continues
FINALLY GOT THIS ISSUE SOLVED!!
So the problem doesn't lie in the version I am using 3.4.0 but still got the problem solved
Authorization not granted. And stuck in the loading screen
Stuck in loading screen https://ibb.co/pLZCDdD
Step 1: When you create your OAuth 2.0 consent screen try to add at least 2 email addresses in GCP TEST USER section and make sure to login from that emails.
https://console.cloud.google.com/apis/credentials/consent
Step 2: After that make sure to verify your application from Google, it will work until you test your app once you release the application, it will not work
https://developers.google.com/fit/verification
Hope this helps
I got this guys, please enable google signin in your firebase authentication , also add your SHA1 to your firebase android project if not specified.
For those who make the same silly mistake as me – once you choose an email it says access denied. And you've set up the oauth, and added the test users etc.
Make sure to update your google-services.json
which you can generate via firebase.
getting Authorization not granted in your example project. I have properly set an OAuth2 Client ID.