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.

can't claim grants on staging when using `aab` builds

See original GitHub issue

Description

Originally found/reported by @stephendonner, it looks like we can’t claim grants on staging due to the following:

2021-05-16 19:22:11.331 31751-31751/? V/chromium: [<VERBOSE6:logging_util.cc>(136)] 
    [ RESPONSE - OnRequest ]
    > Url: https://grant.rewards.bravesoftware.com/v2/attestations/safetynet/90d8d547-cb56-4fd0-a31a-5f87800cacff
    > Result: Failure
    > HTTP Code: 400
    > Body: {"message":"Error verifying token: No matching APK signing certificate found","code":400}

We should also check and ensure this isn’t happening on production or we’ll run into a lot support/issues when users start receiving their ad grants.

Steps to reproduce

  1. install Brave using an internal sharing link (used 1.24.83 Chromium: 90.0.4430.93)
  2. change rewards to staging using the developer settings
  3. once switched to staging, enable rewards and attempt to claim a grant

Actual result

Expected result

Should be able to claim/use grants on staging.

Issue reproduces how often

100% reproducible using the above STR.

Version/Channel Information:

  • Can you reproduce this issue with the current Play Store version? N/A (Yes when using 1.24.x RC)
  • Can you reproduce this issue with the current Play Store Beta version? Yes
  • Can you reproduce this issue with the current Play Store Nightly version? Yes

Device details

  • Install type (ARM, x86): ARM
  • Device type (Phone, Tablet, Phablet): Samsung S10+
  • Android version: Android 11

Brave version

  • 1.24.83 Chromium: 90.0.4430.93 - Reproduced

Website problems only

  • Does the issue resolve itself when disabling Brave Shields? N/A
  • Does the issue resolve itself when disabling Brave Rewards? N/A
  • Is the issue reproducible on the latest version of Chrome? N/A

Additional information

CCing @SergeyZhukovsky @anthonypkeane @bsclifton @brave/legacy_qa @evq

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
kjozwiakcommented, May 10, 2021

Removing the release/blocking as this works when claiming grants on aab builds that were uploaded into GPS. We’ll need to figure out how to get around this re: being able to claim grants on staging on aab builds that were downloaded via internal sharing.

I have the same problem. Brave: 1.23.73 Chromium:90.0.4430.93 I made a post in the community, however, it fell into hold, saying it needs moderation, so far nothing and I can’t even comment in the community.

This is a different issue and your best bet is going through https://community.brave.com. CCing @Hollons in case he can help re: why your posts are being flagged as needing moderation.

1reaction
kjozwiakcommented, May 7, 2021

Labeled as release/blocking as we need to make sure this isn’t happening on production either.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build and test your Android App Bundle
Deploy using app bundles with Android Studio · Select Run > Edit Configurations from the menu bar. · Select a run/debug configuration from...
Read more >
Google Play Android Publisher - Jenkins Plugins
Jenkins plugin installs Build status. Enables Jenkins to manage and upload Android app files (AAB or APK) to Google Play.
Read more >
On Azure Devops - How to Unpack AAB (android app bundle ...
We have a Xamarin project writing in visual studio. As for the Build process, I was able to find that I could use...
Read more >
Packaging Android Projects - Unreal Engine Documentation
To create an App Bundle Build, open your Project Settings and navigate to the Platforms > Android section. In the App Bundles section,...
Read more >
when building app bundle with multiple flavorDimension, tool ...
I was having trouble building a flutter app with 2 flavor dimensions and 2 flavors for each dimension (total of 4 variants,
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