微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

当我的 ionic 应用发布到 Playstore 时,它​​在很多设备上都看不到但它以前的版本是

如何解决当我的 ionic 应用发布到 Playstore 时,它​​在很多设备上都看不到但它以前的版本是

我在 Playstore 上发布了我的应用程序的新版本。它以前的版本几乎在所有设备上都可用。就像我有两个三星型号,一个是 Note 10 lite,另一个是 A21,App 的先前版本在这两款手机上都可用。在两部手机上,我都无法在 Play 商店中查看该应用程序。当我尝试通过我网站上的 Playstore 链接打开它时。它显示“设备与此应用程序不兼容。”。我也检查了 MinSDK 版本。这不会造成任何问题。还检查了用户在谷歌上给出的其他解决方案。 Like line 在我的 AndroidManifest.xml 中不可用。 有关更多信息,我将在此处粘贴我的 AndroidManifest.xml。

<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="311175" android:versionName="3.2.2" package="com.ionicframework.cs0786764578" xmlns:android="http://schemas.android.com/apk/res/android">
    <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
    <uses-permission android:name="android.permission.INTERNET" />
    <application android:hardwareAccelerated="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:networkSecurityConfig="@xml/network_security_config" android:supportsRtl="true">
        <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode" android:label="@string/activity_name" android:launchMode="singletop" android:name="MainActivity" android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustResize">
            <intent-filter android:label="@string/launcher_name">
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <provider android:authorities="${applicationId}.provider" android:exported="false" android:grantUriPermissions="true" android:name="org.apache.cordova.camera.FileProvider">
            <Meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/camera_provider_paths" />
        </provider>
        <amazon:enable-feature android:name="com.amazon.device.messaging" android:required="false" xmlns:amazon="http://schemas.amazon.com/apk/res/android" />
        <service android:exported="false" android:name="com.onesignal.ADMMessageHandler" />
        <receiver android:name="com.onesignal.ADMMessageHandler$Receiver" android:permission="com.amazon.device.messaging.permission.SEND">
            <intent-filter>
                <action android:name="com.amazon.device.messaging.intent.REGISTRATION" />
                <action android:name="com.amazon.device.messaging.intent.RECEIVE" />
                <category android:name="com.ionicframework.cs0786764578" />
            </intent-filter>
        </receiver>
    </application>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="com.amazon.device.messaging.permission.RECEIVE" />
    <permission android:name="com.ionicframework.cs0786764578.permission.RECEIVE_ADM_MESSAGE" android:protectionLevel="signature" />
    <uses-permission android:name="com.ionicframework.cs0786764578.permission.RECEIVE_ADM_MESSAGE" />
</manifest>

关于我的 config.xml 文件的信息在下面提到了关于版本:

<preference name="ScrollEnabled" value="false" />
    <preference name="android-minSdkVersion" value="22" />
    <preference name="android-targetSdkVersion" value="29" />
    <preference name="android-maxsdkVersion" value="28" />
    <preference name="BackupWebStorage" value="none" />
    <preference name="SplashMaintainAspectRatio" value="true" />
    <preference name="FadeSplashScreenDuration" value="300" />
    <preference name="SplashShowOnlyFirstTime" value="false" />
    <preference name="SplashScreen" value="screen" />
    <preference name="SplashScreenDelay" value="3000" />

解决方法

我得到了解决方案。我已将 targetSDKVersion 更改为 30。实际上,我提到的所有设备都在 Android 10 上运行。应用程序旨在在 API 级别 29 上运行,即低于 Android 10。 当 targetSDKVersion 为 29 时,大约有 11k 设备支持 App。当我将其更改为 30 时,支持的设备列表为 14K。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。