OneSignal-Flutter-SDK icon indicating copy to clipboard operation
OneSignal-Flutter-SDK copied to clipboard

[question]: Push Notifications does'nt open app after dynamic icon change at android

Open mberktas opened this issue 1 year ago • 3 comments
trafficstars

How can we help?

Hi,

I have an application with dynamic icon changing feature.

Push notifications open the app before the dynamic icon changes. However, after changing the dynamic icon, the app does not open on Android. There is no problem on iOS.

I use flutter_dynamic_icon_plus for dynamic icon replacement.

Do you have any information about what may cause this problem?

Packages onesignal_flutter: ^5.1.6 flutter_dynamic_icon_plus: ^1.2.1

Version Flutter 3.19.6

Android Manifest

<activity android:name=".MainActivity" android:exported="true" android:enabled="true" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
  <!-- Specifies an Android theme to apply to this Activity as soon as
             the Android process has started. This theme is visible to the user
             while the Flutter UI initializes. After that, this theme continues
             to determine the Window background behind the Flutter UI. -->
  <meta-data android:name="io.flutter.embedding.android.NormalTheme" android:resource="@style/NormalTheme"/>
  <intent-filter>
    <action android:name="android.intent.action.MAIN"/>
    <category android:name="android.intent.category.LAUNCHER"/>
  </intent-filter>
</activity>

  <service
          android:name="com.solusibejo.flutter_dynamic_icon_plus.FlutterDynamicIconPlusService"
          android:stopWithTask="false"/>


       
<meta-data android:name="flutterEmbedding" android:value="2"/>

<activity-alias
    android:label="@string/app_name"
    android:icon="@mipmap/ic_birthday"
    android:roundIcon="@mipmap/ic_birthday"
    android:name=".birthday"
    android:exported="true"
    android:enabled="false"
    android:targetActivity="${applicationId}.MainActivity">

    <meta-data
        android:name="io.flutter.embedding.android.NormalTheme"
        android:resource="@style/NormalTheme"
        />

    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>

</activity-alias>

<activity-alias
    android:label="@string/app_name"
    android:icon="@mipmap/ic_mourning"
    android:roundIcon="@mipmap/ic_mourning"
    android:name=".mourning"
    android:exported="true"
    android:enabled="false"
    android:targetActivity="${applicationId}.MainActivity">

    <meta-data
        android:name="io.flutter.embedding.android.NormalTheme"
        android:resource="@style/NormalTheme"
        />

    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>

</activity-alias>

<activity-alias
    android:label="@string/app_name"
    android:icon="@mipmap/ic_year"
    android:roundIcon="@mipmap/ic_year"
    android:name=".year"
    android:exported="true"
    android:enabled="false"
    android:targetActivity="${applicationId}.MainActivity">

    <meta-data
        android:name="io.flutter.embedding.android.NormalTheme"
        android:resource="@style/NormalTheme"
        />

    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>

</activity-alias>

<activity-alias
    android:label="@string/app_name"
    android:icon="@mipmap/ic_remembrance"
    android:roundIcon="@mipmap/ic_remembrance"
    android:name=".remembrance"
    android:exported="true"
    android:enabled="false"
    android:targetActivity="${applicationId}.MainActivity">

    <meta-data
        android:name="io.flutter.embedding.android.NormalTheme"
        android:resource="@style/NormalTheme"
        />

    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>

</activity-alias>

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

mberktas avatar May 08 '24 11:05 mberktas

Hello I see you have also reported to the icon updater library as well here. Are you still experiencing the issue?

emawby avatar May 20 '24 20:05 emawby

@emawby Yes, the issue is still occurring.

mberktas avatar May 21 '24 06:05 mberktas

Is there any progress?

furkanolkay avatar Jun 24 '24 06:06 furkanolkay