You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error: [50152] RP ID cannot be validated on Android #68
I did read somewhere that only Android 14 and above is supported, but even with an emulator on Android 15, we still get this error.
I think the issue might be with the SHA-256 for the debug build (for assetlinks.json), but can't be sure. I tried creating an internal build in the Play Store for the prototype I'm working on, but that didn't work either.
@timmyjose you got this. The error you see now, I was getting it at some point and some change the configuration might resolved it for me.
I'm certain you need some tweek in the config and it'll work. My registration was working but had issue with login and this issue thread helped me. Leaving it here if this might help you too.
Also take a look at this medium article series which helped me a lot in my POC implementation. Hope these help.
@timmyjose in the meanwhile i discovered on a Samsung device, that if i go with Samsung Pass as the passkey manager, i can register the passkey successfully. with the Google Password Manager option, i still get Error: [50152] RP ID cannot be validated. so there must be something with how GPM is validating the credentials.
Reacted by Maksim Ternovtsi, Noel odunmilade and Victor Ferreira
I get this same error and have already tried every solution I could find online, but I still can’t fix it. I’m not sure if anyone has managed to solve it.
i had the same problem, but finally after a few days realized that the .well-known/assetlinks.json file was the problem, i put all sha256 keys (both 3 keys) and asked the service team to upload again and it worked
It's definitely a configuration issue since this package pretty much passes the request straight to the native androidx credentials handler. If any errors are thrown they'll come from there.
Make sure your sha256 fingerprint matches the correct signing key. It can be a bit finicky unfortunately, but if you follow the docs/readme it will work.
For me the fix was to make sure i was using a Play Store fingerprint key hash not the one generated by expo during build, also the associatedLinks.json. has to have the right package name.
delegate_permission/common.get_login_creds must be included in relation array, not just delegate_permission/common.handle_all_urls
I had the same issue, for me the fix was to match the rpId passed to the library to exactly the domain in which assetlinks.json is served (including the subdomain, if present)
eg. my file is here https://mydomain.com/.well-known/assetlinks.json
Same here. Tried everything
Worker in a real device with Samsung Pass, but does not work with Google Password Manager, both on real device and Emulator
Activity
[-]Error: [50152] RP ID cannot be validated.[/-][+]Error: [50152] RP ID cannot be validated on `Android`[/+]timmyjose commentedon Jun 5, 2025
Also, does the app need to have been published in the Play Store? Right now, I'm using the
debugkeystoreSHA256, and the Google assets validator (https://developers.google.com/digital-asset-links/tools/generator) shows:mdipanjan commentedon Jun 6, 2025
I'm testing a basic version myself and I'm also getting this same error on Andoid emulator as well as on a real android device.
timmyjose commentedon Jun 8, 2025
@mdipanjan
I did read somewhere that only
Android14 and above is supported, but even with an emulator onAndroid15, we still get this error.I think the issue might be with the
SHA-256for thedebugbuild (forassetlinks.json), but can't be sure. I tried creating an internal build in the Play Store for the prototype I'm working on, but that didn't work either.mdipanjan commentedon Jun 9, 2025
It did work for me on
Andorid15 emulator on my local debug build @timmyjosetimmyjose commentedon Jun 10, 2025
@mdipanjan Nice! That's encouraging to hear.
How did you set up the
assetlinks.jsonpart? Could you please share some details?For me:
assetlinks.jsonfile inside /.well-known like so:(I'm using
expo, but that shouldn't make a different, I suppose).timmyjose commentedon Jun 10, 2025
(Just tried with
Android16 as well - same error for me).mdipanjan commentedon Jun 10, 2025
Hello @timmyjose so in my case I'm using an node.js server and that looks like this:
And in the android file:
myApp/android/app/src/main/res/values/strings.xmlHave included this (for https serving over ngrok):
I hope this helps to resolve your issue.
timmyjose commentedon Jun 11, 2025
Thank you, @mdipanjan! Appreciate it!
That is very helpful indeed! So I made the changes by comparing your
assetlinks.jsonandstrings.xml:a different error now, but that's still some progress! I'll try and debug this issue and see.
Since your setup is working, it gives me confidence that my issue must be some annoying configuration issue!
mdipanjan commentedon Jun 13, 2025
@timmyjose you got this. The error you see now, I was getting it at some point and some change the configuration might resolved it for me.
I'm certain you need some tweek in the config and it'll work. My registration was working but had issue with login and this issue thread helped me. Leaving it here if this might help you too.
Also take a look at this medium article series which helped me a lot in my POC implementation. Hope these help.
timmyjose commentedon Jun 13, 2025
Thank you, @mdipanjan ! I'll have a look at the linked resources, and hopefully it should steer me towards resolving these nagging issues!
wilmxre commentedon Jul 17, 2025
@timmyjose hi, i just faced the same
Error: [50152] RP ID cannot be validatederror, did you manage to fix this issue?timmyjose commentedon Jul 17, 2025
@wilmxre Sadly, no. I tried everything, including the excellent resources linked to by @mdipanjan , but no luck.
wilmxre commentedon Jul 18, 2025
@timmyjose in the meanwhile i discovered on a Samsung device, that if i go with Samsung Pass as the passkey manager, i can register the passkey successfully. with the Google Password Manager option, i still get
Error: [50152] RP ID cannot be validated.so there must be something with how GPM is validating the credentials.abc910804 commentedon Jul 29, 2025
I get this same error and have already tried every solution I could find online, but I still can’t fix it. I’m not sure if anyone has managed to solve it.
duy99uit commentedon Aug 20, 2025
i had the same problem, but finally after a few days realized that the .well-known/assetlinks.json file was the problem, i put all sha256 keys (both 3 keys) and asked the service team to upload again and it worked
f-23 commentedon Oct 2, 2025
It's definitely a configuration issue since this package pretty much passes the request straight to the native androidx credentials handler. If any errors are thrown they'll come from there.
Make sure your sha256 fingerprint matches the correct signing key. It can be a bit finicky unfortunately, but if you follow the docs/readme it will work.
kinghoddy commentedon Oct 28, 2025
For me the fix was to make sure i was using a Play Store fingerprint key hash not the one generated by expo during build, also the associatedLinks.json. has to have the right package name.
delegate_permission/common.get_login_creds must be included in relation array, not just delegate_permission/common.handle_all_urls
Finally, test on a real device
gcoro commentedon Dec 4, 2025
I had the same issue, for me the fix was to match the
rpIdpassed to the library to exactly the domain in which assetlinks.json is served (including the subdomain, if present)eg. my file is here
https://mydomain.com/.well-known/assetlinks.jsonso I need to put in the payload
github-actions commentedon Mar 5, 2026
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
plgrazon commentedon Mar 20, 2026
@wilmxre encountering the same issue were you able to solve this?
victorsferreira commentedon Mar 20, 2026
Same here. Tried everything
Worker in a real device with Samsung Pass, but does not work with Google Password Manager, both on real device and Emulator
plgrazon commentedon Mar 20, 2026
@victorsferreira
on your assetlinks.json do you have both?
anhtuanmai commentedon May 8, 2026
It work for me. Thanks @mdipanjan and @plgrazon
fix(native): add handle_all_urls relation to app.beanies.family asset…
assetlinks: add handle_all_urls relation (Android passkey RP-ID valid…