question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Google Play Internal Testing error, production hash, App Store Signing

See original GitHub issue

I am using AAD B2C in an Android app, which is working on my dev machine (Macbook Pro) but is crashing when I deploy it on Google Play for Internal Testing. The error I am getting is:

The  redirect URI in the configuration file doesn't match with the one generated with package name and signature hash. Please verify the uri in the config file and your app registration in the Azure portal.

When I am calling: PublicClientApplication.createMultipleAccountPublicClientApplication

Following these directions I have generated a development Signature Hash. There is another link to generating a production Signature Hash.

keytool -exportcert -alias SIGNATURE_ALIAS -keystore PATH_TO_KEYSTORE | openssl sha1 -binary | openssl base64

but I am using Play App Signing so what do I do in this case?

I assume the issue is related to the production signature hash. I also don’t understand how you can have a dev and prod B2C tenant if the hash is in the AndroidManifest.xml and the raw configuration file (raw/auth_config_multiple_account.json).

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ljunqueracommented, Nov 1, 2021

Thanks, @paulkagiri. I think I got the 2nd one answered. Let me work through the first based on your response.

Android Manifest In the build.gradle I added this for each buildType where needed: manifestPlaceholders = [signatureHash:"<your signature hash>"]

and this in the AndroidMainfest.xml: android:path="${signatureHash}"

Configuration File This article and this documentation helped.

I went into the project view in Project explorer, created a debug directory (to match my debug buildType in the build.gradle) in the src directory (making it a peer of main, test and androidTest), created a res directory under the new debug directory and a raw directory under the new res directory. I copied the auth_config_multiple_account.json file into it and altered the configuration to test it. All worked ok.

0reactions
paulkagiricommented, Nov 3, 2021

Cool, I will close this one for now

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Play App Signing - KeyHash Mismatch - Stack Overflow
1.Generate key hash for the release certificate. Go to command line and execute this command. Replace the placeholders in <*.. · 2.Copy the...
Read more >
How to configure Signature Hash with Google Play Signing
Here is the solution, which I found here. Go to the app in the Google Play Console and in the Release section of...
Read more >
Set up an open, closed, or internal test - Play Console Help
Open Play Console and go to the Open testing page (Testing > Open testing). Select the Testers tab. Expand the "Manage testers" section....
Read more >
How to Code Sign Secured Android App with SHA Fingerprint ...
For Internal Testing and App Releases · Choose the application you are signing · Go to Release Management –> App Signing · Copy/Download...
Read more >
Answers to common questions about Play App Signing
Android apps are cryptographically signed by the developer. This allows the package manager on the user's device to verify that every app ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found