Android Question App incompatible with device

carloz

Member
Licensed User
Longtime User
hello all,

Facing a new issue... i have a app published on the appstore..below is the manifest
The app has a service with StartatBoot=true

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: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
SetManifestAttribute("android:installLocation", "auto")
AddManifestText(<permission android:name="$PACKAGE$.permission.C2D_MESSAGE" android:protectionLevel="signature" />)
AddPermission($PACKAGE$.permission.C2D_MESSAGE)
AddPermission(com.google.android.c2dm.permission.RECEIVE)
' Push Service Receiver Attribute
SetReceiverAttribute(PushService, android:permission, "com.google.android.c2dm.permission.SEND")
' Service Receiver Text
AddReceiverText(PushService,
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="$PACKAGE$" />
</intent-filter>
<intent-filter>
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="$PACKAGE$" />
</intent-filter>)

plz see attached image for permissions displayed on play store..
Some customers get the "this app is incompatible with your device", for example..
one customer has a lenovo A369i, Andrid OS 4.2.2, he still gets this error.

Does anyone else face this issue? what should i be looking at?
regards
carloz
 

Attachments

  • Screenshot_2015-08-03-20-32-59.jpeg
    208.9 KB · Views: 250

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
why dont you compile it with
android:targetSdkVersion="19" or
android:targetSdkVersion="21"

android 14 is ICS and 4.2.2 is level 17.
may be it could solve the compatibility Issue.
 
Upvote 0

carloz

Member
Licensed User
Longtime User
hi enrique,

thnx for replying.
will try that.. but funnily some other apps i have published with same settings do not show incompatible device..

regards
carloz
 
Upvote 0

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
As a user here in the forum said: "may be Mr Robot is having a bad day"
Or.

if you target your app to <= 14, you must have the most updated sdk of that target, google releases updates even if several years passed, if you dont have the most updated then Google implies that your sdk will not be compliant with newer devices.

... well something like that, i prefer the first answer to explain most of the issues with incompatibility.
 
Upvote 0

carloz

Member
Licensed User
Longtime User
i do test on actual devices...the app works fine on the lenovo 369i even though google says incompatible...thats what completely stumped me !!
 
Upvote 0

carloz

Member
Licensed User
Longtime User
Well... Updated app on store ..changed manifest as per Enrique's instructions..but no luck..
I still get the app incompatible with device

Now what to try next?
Regards
Carloz
 
Upvote 0

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
the problem seems to be not the device version but the country as you can see in the attached screenshot.
 

Attachments

  • Globus Error.png
    72.4 KB · Views: 266
Upvote 0

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
if that is so, is not the android sdk the problems but the permissions.

One posible solution is changing (example):

B4X:
<uses-permission android:name="android.permission.VIBRATE"/>

to:

B4X:
<uses-feature android:name="android.hardware.vibrate" android:required="false"/>

the one that makes me wonder is the Device id and Call information

Hope it helps.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…