I am just updating an old app to API 33.
The app uses Push Notifications.
The build etc is fine but when I upload to Google Play for release I get the following message
I checked the built Manifest.xml and it contains this line:
I do not want to use an Advertising ID in this app. Is this now a requirement when using Push Notifications?
If not, how can I remove.
My Manifest is quite simple.
The app uses Push Notifications.
The build etc is fine but when I upload to Google Play for release I get the following message
I checked the built Manifest.xml and it contains this line:
B4X:
<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>
I do not want to use an Advertising ID in this app. Is this now a requirement when using Push Notifications?
If not, how can I remove.
My Manifest is quite simple.
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="33"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.LightTheme)
'End of default text.
'Icon
SetApplicationAttribute(android:icon, "@mipmap/ic_launcher")
CreateResource(mipmap-anydpi-v26, ic_launcher.xml,
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/background"/>
<foreground android:drawable="@mipmap/foreground"/>
</adaptive-icon>
)
'Set up keyboard handling for scrolling
SetActivityAttribute(Main, android:windowSoftInputMode, adjustResize|stateHidden)
'**************************************
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
'*****************ANDROID PUSH NOTIFICATIONS ********************
AddPermission(android.permission.POST_NOTIFICATIONS)
'****************************************************************
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="33"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.LightTheme)
'End of default text.
'Icon
SetApplicationAttribute(android:icon, "@mipmap/ic_launcher")
CreateResource(mipmap-anydpi-v26, ic_launcher.xml,
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/background"/>
<foreground android:drawable="@mipmap/foreground"/>
</adaptive-icon>
)
'Set up keyboard handling for scrolling
SetActivityAttribute(Main, android:windowSoftInputMode, adjustResize|stateHidden)
'**************************************
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
'*****************ANDROID PUSH NOTIFICATIONS ********************
AddPermission(android.permission.POST_NOTIFICATIONS)
'****************************************************************