Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fitness scope doesn't allow login in iOS #281

Open
AlanD24 opened this issue May 15, 2023 · 1 comment
Open

Add fitness scope doesn't allow login in iOS #281

AlanD24 opened this issue May 15, 2023 · 1 comment

Comments

@AlanD24
Copy link

AlanD24 commented May 15, 2023

This error just happens on iOS, I'm not sure if it's because the use of the API is still not verified. But in android works fine, if I add the scope "https://www.googleapis.com/auth/fitness.activity.read" on capacitor.config.ts, it actually logs in android device, but not in iOS devices.

The error says "The operation couldn't be completed. (com.google.GIDSignIn error -8.)". So I checked the issues section in this repository, where I found if I use "GoogleAuth.refresh()" it would work, which is false, I still present the error.

I've been looking for days if I could detect the platform where it's running but with no success. I used Capacitor.getPlatform() in capacitor.config.ts but it always returns "web", doesn't matter if I runned "ionic cap run ios" or "ionic cap run android" and I'm not finding a solution.

I tried to add this scope on GoogleAuth.initialize({ scopes: [] }), but it's not being added in my capacitor.config.ts nor capacitor.config.json. I'm not sure if initialize() function is not working.

I'd like to ask kindly for your help, please.

@DmitrySkakun
Copy link

Hello. I am facing the same issue. Is there any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants