pwa-builder / PWABuilder

The simplest way to create progressive web apps across platforms and devices. Start here. This repo is home to several projects in the PWABuilder family of tools.
https://docs.pwabuilder.com
Other
2.71k stars 280 forks source link

Add Ad ID Permission Declaration in PWABuilder Packager Tool #4822

Open ekkaiasmith opened 2 days ago

ekkaiasmith commented 2 days ago

Tell us about your feature idea

It would be beneficial to add a feature in the PWABuilder packager tool that allows developers to declare the Ad ID permission (com.google.android.gms.permission.AD_ID) directly. This feature should automatically insert the following permission into the AndroidManifest.xml when building the Android package for a PWA:

<uses-permission android:name="com.google.android.gms.permission.AD_ID" />

Do you have an implementation or a solution in mind?

Add an option in the PWABuilder interface where developers can specify whether their app requires Ad ID permission. If enabled, the packager will automatically add the following permission to the generated AndroidManifest.xml file:

<uses-permission android:name="com.google.android.gms.permission.AD_ID" />

Have you considered any alternatives?

Currently I don't see any other alternatives than to decompile the .aab and editing the manifest myself.