Android Question Edit consentform.html

yiankos1

Well-Known Member
Licensed User
Longtime User
Hello,

I am using Erel's tutorial in order to show EU User Consent Form. As i read here:
To update consent text of the Google-rendered consent form, modify the consentform.html file included in the Consent SDK as required.
According here, i have to put my edited consentform.html at assets folder and the default one will be overridden. But keeps showing the default one.
Any ideas?

Thank you for your time.
 

DonManfred

Expert
Licensed User
Longtime User
As i am extecting you use AndroidX:
Did you replace them in both jars? the jar itself and the jetified one.
 
Upvote 0

Pendrush

Well-Known Member
Licensed User
Longtime User
  1. Find "GoogleConsent.aar" in internal lib folder in my case: c:\Program Files (x86)\Anywhere Software\Basic4android\Libraries\GoogleConsent.aar
  2. Change .aar to .zip
  3. Inside zip is "assets" folder and in that folder is file "consentform.html".
  4. Delete "consentform.html" file from "assets" folder
  5. Change .zip back to .aar
  6. Your "consentform.html" should be in B4a assets (Files) folder.
  7. Add this to Main: #DebuggerForceStandardAssets: True
 
Last edited:
Upvote 0

yiankos1

Well-Known Member
Licensed User
Longtime User
  1. Find "GoogleConsent.aar" in internal lib folder in my case: c:\Program Files (x86)\Anywhere Software\Basic4android\Libraries\GoogleConsent.aar
  2. Change .aar to .zip
  3. Inside zip is "assets" folder and in that folder is file "consentform.html".
  4. Delete "consentform.html" file from "assets" folder
  5. Your "consentform.html" should be in B4a assets (Files) folder.
  6. Add this to Main: #DebuggerForceStandardAssets: True
Indeed! It worked! One last step is to rename again from .zip to .aar
 
Upvote 0
Top