capacitor-community / apple-sign-in

Sign in with Apple Support
MIT License
135 stars 58 forks source link

Error: "SignInWithApple.authorize()" is not implemented on android #107

Open Wallfacer005CN opened 4 months ago

Wallfacer005CN commented 4 months ago

Describe the bug Error: "SignInWithApple.authorize()" is not implemented on android

Although the readme document states that Android is not supported, I noticed that there is Android code in the repository, and the update log shows that Android has been supported from a certain version. However, when I tested it on an Android device, I encountered an error indicating that it is not supported.

piotr-cz commented 4 months ago

Current Android code is just a Capacitor plugin placeholder (that hasn't been updated since Capacitor v3: #105).

This may be fixed either by:

Wallfacer005CN commented 4 months ago

Current Android code is just a Capacitor plugin placeholder (that hasn't been updated since Capacitor v3: #105).

This may be fixed either by:

Thanks very much for your reply. This is my first time using Capacitor and this plugin. Could you please tell me how to “removing placeholder and using Web version on Android platform” ?

piotr-cz commented 4 months ago

@Wallfacer005CN This must be implemented in a pull request.

At this moment I'm not showing Sign in with Apple only on iOS platform like this:

import { isPlatform } from '@ionic/react'

const authenticationServices: JSX.Element[] =
  isPlatform('ios') && isPlatform('capacitor')
    ? [<AppleSignIn />, <GoogleLogin />]
    : [<GoogleLogin />]

// .. render available authentication services
Wallfacer005CN commented 4 months ago

@Wallfacer005CN This must be implemented in a pull request.

At this moment I'm not showing Sign in with Apple only on iOS platform like this:

import { isPlatform } from '@ionic/react'

const authenticationServices: JSX.Element[] =
  isPlatform('ios') && isPlatform('capacitor')
    ? [<AppleSignIn />, <GoogleLogin />]
    : [<GoogleLogin />]

// .. render available authentication services

@Wallfacer005CN This must be implemented in a pull request.

At this moment I'm not showing Sign in with Apple only on iOS platform like this:

import { isPlatform } from '@ionic/react'

const authenticationServices: JSX.Element[] =
  isPlatform('ios') && isPlatform('capacitor')
    ? [<AppleSignIn />, <GoogleLogin />]
    : [<GoogleLogin />]

// .. render available authentication services

Thank you very much. It looks that I misunderstood.

Bhagatameya21 commented 1 month ago

Same Issue No Solution for Android atm?