Cordova Slack Digest

Wed, 18 May 2022 08:21:43 GMT

User count: 4690

Join the conversation at slack.cordova.io

Channel #general (1 messages)


Tue, 17 May 2022 16:46:56 GMT

@alex678 says

Hello everybody, what “GPDR consent box” do you use for your iOS/Android projects please ?

Channel #cordova-ios (1 messages)


Tue, 17 May 2022 08:57:04 GMT

@info300 says

Hallo guys! has anyone problems with latest iOS v15.4.1? some users reported, that our app crashed… In crash logs I can’t understand what the problem and where it happened…

Channel #cordova-android (4 messages)


Tue, 17 May 2022 20:20:04 GMT

@michael.a.oshea says

Hi all,

it‘s me again with the usual "why doesn’t my app appear in Play Store for [the latest version of Android] devices?".

In this case: Android 12.

As far as I can tell, my app complies with https://developer.android.com/google/play/requirements/target-sdk and https://developer.android.com/about/versions/12/behavior-changes-12

Last time, the problem was with Android 11 and was caused by the AndroidManifest.xml not containing

<uses-sdk android:maxSdkVersion=“29” android:minSdkVersion=“22” android:targetSdkVersion=“29” />

This time, with Android 12, I changed that to

<uses-sdk android:maxSdkVersion=“31” android:minSdkVersion=“22” android:targetSdkVersion=“31” />

... and when that app didn't appear in the Play Store listing, I changed to ...

<uses-sdk android:maxSdkVersion=“30” android:minSdkVersion=“22” android:targetSdkVersion=“30” />

That also does not appear for Android 12 devices.

In order to be able to isolate the problem, I decided to build the basic “hello world” and make it pass as my full app and then publish it to Internal Test.

The build works fine and generates an aab file, the signing works fine, publishing it to Internal Test works fine.

Older devices (Android 11, older) signed onto an account that is listed as a tester do see this new version of the app.

Devices running Android 12 (also signed in as an account that is listed as a tester) don't see it.

Here's the technical description of my work environment:

11.0.0

C:\projects\IGC2&gt;cordova requirements

Requirements check results for android:
Java JDK: installed 11.0.15
Android SDK: installed true
Android target: installed android-32,android-31,android-30
Gradle: installed C:\Gradle\gradle-7.4.2\bin\gradle.BAT```
platform\android\project.properties:

```# This file was originally created by the Android Tools, but is now
# used by cordova-android to manage the state of the various third party
# libraries used in your application

# This is the Library Module that contains the Cordova Library, this is not
# required when using an AAR

# This is the application project.  This is only required for Android Studio Gradle projects

# Project target.
target=android-30
android.library.reference.1=CordovaLib
android.library.reference.2=app```
platform\android\CordovaLib\project.properties:

```# GENERATED FILE! DO NOT EDIT!

# This file was originally created by the Android Tools, but is now
# used by cordova-android to manage the project configuration.

# Indicates whether an apk should be generated for each density.
split.density=false

# Project target.
apk-configurations=
renderscript.opt.level=O0
android.library=true
target=android-30```
platform\android\app\src\main\AndroidManifest

```&lt;?xml version='1.0' encoding='utf-8'?&gt;
&lt;manifest android:hardwareAccelerated="true" android:versionCode="220051706" android:versionName="16.0.6" package="com.igrowchicken.hybridapp" xmlns:android="<http://schemas.android.com/apk/res/android>"&gt;
    &lt;uses-sdk android:maxSdkVersion="30" android:minSdkVersion="22" android:targetSdkVersion="30" /&gt;
    &lt;supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" /&gt;
    &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
    &lt;application android:hardwareAccelerated="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true"&gt;
        &lt;activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode" android:exported="true" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@style/Theme.AppCompat.NoActionBar" android:windowSoftInputMode="adjustResize"&gt;
            &lt;intent-filter android:label="@string/launcher_name"&gt;
                &lt;action android:name="android.intent.action.MAIN" /&gt;
                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
    &lt;/application&gt;
&lt;/manifest&gt;```
Notice above how the android:exported="true"  attrbiute *is* included in the &lt;activity&gt; element.

Any suggestions are appreciated.

Thanks.

Michael

Wed, 18 May 2022 01:39:54 GMT

@norman137 says

If you can opt to, it's better Not to specify a max sdk version

Wed, 18 May 2022 01:42:57 GMT

@norman137 says

When you specify a max SDK version, you‘re saying that your app is not supported on any newer device, and they won’t appear in the play store.

Most of the time, Google will only introduce behaviour differences when you upgrade your target SDK, so even if you haven't build or tested your app against hte latest SDK, it should still work. Google however does reserve the right to force changes regardless of the target sdk, but in the interest of having older apps just work on new devices, they try to avoid doing that.

Wed, 18 May 2022 06:24:28 GMT

@michael.a.oshea says

Hey Norman! Thanks for tip. I will do that now. Will tell you how it goes.