我们的 Android 应用程序中缺少“打开”按钮

Gre*_*ice 6 android google-play flutter actions-on-google google-play-console

我们最近升级了我们的应用程序,使其符合Android 12(API 级别 31)并使用 Flutter 版本 2.8.1 构建。

Google 最近批准了我们的应用程序,但当我们“更新”应用程序时,以前的版本将从设备和 Play 商店中删除。剩下的按钮选项是“卸载”。不再有“打开”按钮(参见屏幕截图 1)。

Android 9、10、11、12 和 13 版本均出现此情况。我们所有的应用程序都启用了 GooglePay。

1.缺少“打开”按钮

我们已采取的步骤:

  • 我们的版本控制如何在商店中显示(参见屏幕截图 2)
  • 我们的应用程序清单中包含的活动
  • 联系了 Google 支持人员,他们建议了上面的要点,我们已经在应用程序清单中提供了该要点。任何为我们指明正确方向的答案甚至评论都会很棒。谢谢!

2. 版本控制

文件AppManifest.xml

我们的AppManifest.xml文件中是否存在错误?

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="<BOUNDLE ID>">
    <!-- io.flutter.app.FlutterApplication is an android.app.Application that
         calls FlutterMain.startInitialization(this); in its onCreate method.
         In most cases you can leave this as-is, but you if you want to provide
         additional functionality it is fine to subclass or reimplement
         FlutterApplication and put your custom class here. -->
    <uses-permission android:name="android.permission.INTERNET" />

    <!-- commenting this out as i don;t think we;re using it and google asks us why we're requesting it.
     it's for seeing what apps are installed on someones phone
     not sure if needed for web views perhaps?
     -->
    <!-- <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/> -->

    <application
        android:label="@string/app_name"
        android:icon="@mipmap/ic_launcher">
        <activity
            android:name=".MainActivity"
            android:exported="true"
            android:launchMode="singleTop"
            android:theme="@style/LaunchTheme"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize">
            <!-- This keeps the window background of the activity showing
                 until Flutter renders its first frame. It can be removed if
                 there is no splash screen (such as the default splash screen
                 defined in @style/LaunchTheme). -->
            <meta-data
                android:name="io.flutter.embedding.android.SplashScreenDrawable"
                android:resource="@drawable/launch_background" />
              <meta-data
                android:name="com.google.android.gms.wallet.api.enabled"
                android:value="true" />
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER"/>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data
                    android:scheme="stripesdk"
                    android:host="3ds.stripesdk.io" />
            </intent-filter>
        </activity>
        <activity
            android:name="com.yalantis.ucrop.UCropActivity"
            android:screenOrientation="portrait"
            android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
    </application>
    <meta-data
        android:name="flutterEmbedding"
        android:value="2" />
</manifest>
Run Code Online (Sandbox Code Playgroud)

use*_*239 0

仅当您的手机上有应用程序的调试版本时才会发生这种情况。尝试从您从未用于开发或测试的设备打开应用程序,您将不会遇到此问题。