EddyVerbruggen / nativescript-apple-sign-in

Sign In With Apple, as seen on WWDC 2019, available with iOS 13
Apache License 2.0
39 stars 15 forks source link

Android support(?) #2

Open EddyVerbruggen opened 5 years ago

EddyVerbruggen commented 5 years ago

Let me quote @DickSmith here, who contacted me via Slack:

[..] You also planning on implementing for Android with the JS API? (While not as common for Android users to have an Apple account, I think soon many will since it’s more secure. Plus many Android users like me probably already had an Apple account longer than Google or Firebase because of iPods and iTunes).

Just curious too, since if the plugin API uses the Web API as much as reasonable, will then make it easy to use 3way interfaces for 3-way code sharing apps. [..]

Let's investigate the possibilities!

jerbob92 commented 5 years ago

Please be warned that you currently can not get the email and name through this method. See this thread: https://forums.developer.apple.com/message/365867#365867

The JS method is only to redirect to the login page of Apple, you still need a redirect URI that exchanges the token. This can possibly be done with a webview and catching the redirect to the redirect URI, however, on the forum they are talking about removing the redirect response_mode, so this might be impossible to implement without some server in the middle.