Giter Club home page Giter Club logo

Comments (5)

vitordealmeida avatar vitordealmeida commented on June 24, 2024 1

Agreed, just shared a quick workaround that worked for us

from com.unity.mobile.notifications.

aurimasc avatar aurimasc commented on June 24, 2024 1

This issue is fixed in master.

from com.unity.mobile.notifications.

vitordealmeida avatar vitordealmeida commented on June 24, 2024

Can confirm the issue, I'm receiving a warning that my game will not be downloadable by Android 12 users. The receiver that presented the problem is com.unity.androidnotifications.UnityNotificationRestartOnBootReceiver. My solution was to provide a customized AndroidManifest in my unity project to avoid this issue with the following content:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.unity3d.player"
          android:installLocation="preferExternal" android:versionCode="1" android:versionName="1.0">
    <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true"
                      android:xlargeScreens="true" android:anyDensity="true"/>
    <application android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:icon="@drawable/app_icon"
                 android:label="@string/app_name">
        <activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name"
                  android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
            <meta-data android:name="unityplayer.UnityActivity" android:value="true"/>
        </activity>

        <receiver
                android:name="com.unity.androidnotifications.UnityNotificationManager"
                android:exported="true" />
        <receiver
                android:name="com.unity.androidnotifications.UnityNotificationRestartOnBootReceiver"
                android:exported="true"
                android:enabled="false">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>
    </application>
</manifest>

from com.unity.mobile.notifications.

AntonioTangeloGames avatar AntonioTangeloGames commented on June 24, 2024

Thanks! it should work.
We have a custom manifest as well, but we don't have on it the receiver for mobile notification.
We could add it and fix the issue, but I think that this is something that the package should provide to us.

from com.unity.mobile.notifications.

dcosmin-97 avatar dcosmin-97 commented on June 24, 2024

The issue is solved in 1.5.0, but the tag is not modified yet to 1.5.0 so you cannot update yet, maybe they forgot to add it

from com.unity.mobile.notifications.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.