Android Question Amazon App Store Submission

brianwiz12

Active Member
Licensed User
Longtime User
Hello,

Have not had an issue with submitting to Amazon App Store. This version gives me the following error when testing

your apk includes a manifest declaration or an API invocation referring to google cloud messaging

Submitting it results in failure because of it.

My Manifest is

B4X:
'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-feature android:name="com.sec.feature.spen_usp" android:required="true"/>
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="29"/>
<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.DarkTheme)


'Navigation System
SetApplicationAttribute(android:theme, "@style/MyAppTheme")

CreateResource(values, theme.xml,
<resources>
    <style name="MyAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="colorPrimary">#939999</item>
        <item name="colorPrimaryDark">#939999</item>
        <item name="colorAccent">#939999</item>
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
    </style>
</resources>
)
'ads
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
CreateResourceFromFile(Macro, FirebaseAnalytics.FirebaseAnalytics)
CreateResourceFromFile(Macro, FirebaseAdMob.FirebaseAds)
CreateResourceFromFile(Macro, FirebaseAuth.FirebaseAuth)

any thoughts? I have already opened a ticket with Amazon themselves.
 

Pendrush

Well-Known Member
Licensed User
Longtime User
Amazon devices are without Google services.
This will not work for sure: CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
 
Upvote 0

brianwiz12

Active Member
Licensed User
Longtime User
Thank you for that i did try to take that out and its still detected.

Too Add this is only for ads

I have multiple apps with same ad code with no issues
 
Last edited:
Upvote 0

brianwiz12

Active Member
Licensed User
Longtime User
Thank you. I just tried to do another one with those two taken out and still get the same caution/warning.

Should i try to edit the manifest xml file? I have not had to do that before so cautious at best approach here
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
Here's a thread on Amazon Developer that might point you in the right direction. Also, have a look in the generated manifest (the part you posted is only what's in B4X manifest editor) & see if there's anything in there that might be causing it. It will be in Project\Objects.

- Colin.
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
Also - make sure you haven't got any libraries selected in the IDE that might be causing a problem. Even if there are no references in your app or manifest, if they are still being compiled into your apk, Amazon could be detecting them.

- Colin.
 
Upvote 0
Top