feat: Add Android support
f-23 opened this issue · comments
Add support for Android. Since there is no native API for passkeys available on Android a possible workaround would be to use a web view and authenticate with the server through it.
Update: Initial Library for Android Passkeys will now be release "soon". I will start working on it once its being released (probably early next year).
@f-23 This would be awesome! No rush, but what is the current status of this?
@andrew-levy The Android team has pushed back its plans for a native passkey API on Android, so right now it is unclear when it'll be released.
From the FAQ link above:
For Android apps, we aim to have an initial library for passkey support soon.
I'd rather wait for this native API than implement some kind of workaround which would become obsolete within a few months.
@f-23 Makes sense, thanks for the update. Any thoughts on adding web support to make this truly cross platform? If you're interested, I might have time to help implement that.
@andrew-levy I think that would definitely make a good addition! I've created #7 so we can track and discuss the details on that over there.
Great news! Android team has released an alpha version of credentials library. Do you any help with integration?
Edit: grammar
@zolbooo Sounds good! Contributions are always welcome, so if you wanna work on this you're welcome to do so.
Status update:
I was able to take a closer look at the new androidx credentials library and managed to implement a somewhat working version into react-native-passkey
.
Since the native android library is still in a very early alpha/preview phase I would prefer to wait though until a stable version is being released.
Even with the testing I did I've encountered a handful of bugs and issues. As soon as those are resolved the full implementation should not take too long based on what I've already managed to do.
Checking this article from late March: https://medium.com/androiddevelopers/bringing-seamless-authentication-to-your-apps-using-credential-manager-api-b3f0d09e0093. Are there any updates on the state of those bugs and how Android team is addressing them?
And thanks for working on it! 🙏🏼
It's looking a lot better with the newer alpha versions.
Nevertheless I've found another issue preventing me from fully implementing this yet. Created an issue on the android credentials repo for this, will have to wait and see what the Android team says.
I'm gonna keep you updated!
Probably they will announce the stable version in Google I/O.
Android support is now available!
Bear in mind that the native androidx credentials library is still in alpha. I'm gonna use this ticket to track any issues that might occur.
beta version is live, would be possible updating?
Android support is now available!
Bear in mind that the native androidx credentials library is still in alpha. I'm gonna use this ticket to track any issues that might occur.
@f-23 what version of native androidx credentials is compatible with react native passkeys at the moment,
and when would you be updating using the new beta version..?
RN Passkeys is using androidx credentials 1.0.0-alpha08 right now.
I'm working on updating to the latest beta version.
react-native-passkey has been updated to use androidx credentials 1.2.0-beta03.
Please update to 2.1.0.
great!
thanks