How To Add Sign In With Apple In Ionic 3

Hi,
Anybody knows how i can add “Sign In With Apple” in ionic 3 ios application as apple is rejecting apps having any third party login but not having “Sign In With Apple”.

Firebase has that option. https://firebase.googleblog.com/2019/11/sign-in-with-apple-auth.html

You can use this plugin:

Usage:
declare var cordova: any;

cordova.plugins.SignInWithApple.signin(
null,
(appleLoginResponse: any) => {
console.log( appleLoginResponse )
this.signInFirebaseApple( appleLoginResponse )
},
(err: any) => {
console.error(err)
console.log(JSON.stringify(err))
}
)

1 Like

Thanks, that workaround works well for now :tada: . I hope the Apple review will be good this time. :sweat_smile:

1 Like

Hi,

Please, could you help me, after install plugin, SignInWithApple not recognize.

Many Thanks

Show error like this, Property ‘SignInWithApple’ does not exist on type ‘CordovaPlugins’.