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.
 

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

Pendrush

Well-Known Member
Licensed User
Longtime User
PS.
You need to delete "consentform.html" from "GoogleConsent.aar" on every B4a update.
 
Upvote 0

yiankos1

Well-Known Member
Licensed User
Longtime User
Indeed! It worked! One last step is to rename again from .zip to .aar
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…