-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
android.app.MissingForegroundServiceTypeException with targetSDK 34 #22
Comments
Just for a record, instead of the requested video in the Google Console's form I used link to Play Assets Delivery web page. The review took much longer time than usually (almost whole day), but was accepted in the end. It looks there are no exceptions anymore. Here is how looks my manifest: <manifest android:installLocation="auto">
<uses-sdk android:minSdkVersion="23" android:targetSdkVersion="34"/>
<uses-permission android:name="android.permission.INTERNET"/>
<!-- Required to read and write the expansion files on shared storage -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<!-- Required on Android P+ (API 28) to start foreground services. -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<!-- Required for PlayAssets on API 34+ -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC"/>
<application
android:enabled="true"
android:isGame="true"
android:hardwareAccelerated="true"
android:debuggable="false">
<!-- GooglePlay Games Services -->
<meta-data android:name="com.google.android.gms.version" android:value="12451000"/>
<activity
android:name="com.google.android.gms.games.internal.v2.resolution.GamesResolutionActivity"
android:exported="false" />
<!-- APP ID - you must change it to ID of your application! -->
<meta-data
android:name="com.google.android.gms.games.APP_ID"
android:value="@string/game_services_project_id" />
<activity
android:name="com.google.android.play.core.common.PlayCoreDialogWrapperActivity"
android:enabled="false"
android:exported="false"
android:stateNotNeeded="true" />
<service
android:foregroundServiceType="dataSync"
android:name="com.google.android.play.core.assetpacks.AssetPackExtractionService"
android:enabled="false"
android:exported="true" />
<service
android:foregroundServiceType="dataSync"
android:name="com.google.android.play.core.assetpacks.ExtractionForegroundService"
android:enabled="false"
android:exported="false" />
<activity
android:name="com.google.android.gms.auth.api.signin.internal.SignInHubActivity"
android:windowSoftInputMode="stateAlwaysHidden|adjustPan"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:excludeFromRecents="true"
android:exported="false" />
</application>
</manifest> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using own ANE for Play Assets Delivery and after updating target to version 34 I can see in Google Play Console crash reports like"
I guess that same would be with this ANE so I would like to ask, how it could be fixed?
I'm currently modifying manifest file by adding
android:foregroundServiceType="dataSync"
into asset pack services and also including<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC"/>
, but now when I submit the app to review, I can see a form requesting a video how we use the service. Is this normal?The text was updated successfully, but these errors were encountered: