You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notification pushed from Clevertap dashboard (Android) shows a white stub instead of the app icon in the notification system tray.
However, firebase notifications pushed from our custom backend server works fine and displays with the app icon properly.
<manifestxmlns:android="http://schemas.android.com/apk/res/android"package="in.stratzy">
<!-- 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. --><!-- Required to allow the app to send events and user profile information -->
<uses-permissionandroid:name="android.permission.INTERNET"/>
<!-- Recommended so that CleverTap knows when to attempt a network call -->
<uses-permissionandroid:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permissionandroid:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permissionandroid:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permissionandroid:name="android.permission.READ_CONTACTS"/>
<uses-permissionandroid:name="android.permission.WRITE_CONTACTS"/>
<uses-permissionandroid:name="android.permission.GET_ACCOUNTS"/>
<uses-permissionandroid:name="android.permission.VIBRATE"/>
<queries>
<intent>
<actionandroid:name="android.intent.action.VIEW" />
<dataandroid:scheme="https" />
</intent>
</queries>
<applicationandroid:name="com.clevertap.android.sdk.Application"android:label="Stratzy"android:allowBackup="false"android:icon="@mipmap/ic_launcher">
<!-- android:allowBackup="false" This solves the Xiaomi devices backup and storage problem --><!-- Notification logo fix --><!-- Set custom default icon. This is used when no icon is set for incoming notification messages. -->
<meta-dataandroid:name="com.google.firebase.messaging.default_notification_icon"android:resource="@drawable/ic_stat_stratzy" />
<!-- Set color used with incoming notification messages. This is used when no color is set for the incoming notification message. See README(https://goo.gl/6BKBk7) for more. -->
<meta-dataandroid:name="com.google.firebase.messaging.default_notification_color"android:resource="@color/colorGreen" />
<!-- [END fcm_default_icon] --><!-- [START fcm_default_channel] -->
<meta-dataandroid:name="com.google.firebase.messaging.default_notification_channel_id"android:value="@string/default_notification_channel_id" />
<!-- [END fcm_default_channel] -->
<meta-dataandroid:name="CLEVERTAP_ACCOUNT_ID"android:value="xxx-xxx-xxxx"/>
<meta-dataandroid:name="CLEVERTAP_TOKEN"android:value="xxx-xxx"/>
<!-- IMPORTANT: To force use Google AD ID to uniquely identify users, use the following meta tag. GDPR mandates that if you are using this tag, there is prominent disclousure to your end customer in their application. Read more about GDPR here - https://clevertap.com/blog/in-preparation-of-gdpr-compliance/ -->
<meta-dataandroid:name="CLEVERTAP_USE_GOOGLE_AD_ID"android:value="1"/>
<!--Facebook analytics-->
<meta-dataandroid:name="com.facebook.sdk.ApplicationId"android:value="@string/facebook_app_id" />
<activityandroid:name=".MainActivity"android:exported="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-dataandroid:name="io.flutter.embedding.android.NormalTheme"android:resource="@style/NormalTheme"
/>
<!-- Displays an Android View that continues showing the launch screen Drawable until Flutter paints its first frame, then this splash screen fades out. A splash screen is useful to avoid any visual gap between the end of Android's launch screen and the painting of Flutter's first frame. -->
<meta-dataandroid:name="io.flutter.embedding.android.SplashScreenDrawable"android:resource="@drawable/launch_background"
/>
<intent-filter>
<actionandroid:name="android.intent.action.MAIN"/>
<categoryandroid:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<intent-filter>
<actionandroid:name="FLUTTER_NOTIFICATION_CLICK" />
<categoryandroid:name="android.intent.category.DEFAULT" />
</intent-filter>
<!-- Deep linking --><!-- <meta-data android:name="flutter_deeplinking_enabled" android:value="true" />--><!-- <intent-filter android:autoVerify="true">--><!-- <action android:name="android.intent.action.VIEW" />--><!-- <category android:name="android.intent.category.DEFAULT" />--><!-- <category android:name="android.intent.category.BROWSABLE" />--><!-- <data android:scheme="http" android:host="stratzy.in" />--><!-- <data android:scheme="https" />--><!-- </intent-filter>--><!-- Deep Links -->
<intent-filter>
<actionandroid:name="android.intent.action.VIEW" />
<categoryandroid:name="android.intent.category.DEFAULT" />
<categoryandroid:name="android.intent.category.BROWSABLE" />
<!-- Accepts URIs that begin with YOUR_SCHEME://YOUR_HOST -->
<dataandroid:scheme="https"android:host="stratzy.page.link" />
</intent-filter>
</activity>
<!-- Clevertap, read -https://github.com/CleverTap/clevertap-android-sdk/blob/master/docs/CTV4CHANGES.md --><!-- to use Firebase messaging-->
<serviceandroid:name="com.clevertap.android.sdk.pushnotification.fcm.FcmMessageListenerService"android:exported="false">
<intent-filter>
<actionandroid:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<!-- to enable push notification-->
<serviceandroid:name="com.clevertap.android.sdk.pushnotification.CTNotificationIntentService"android:exported="false">
<intent-filter>
<actionandroid:name="com.clevertap.PUSH_EVENT" />
</intent-filter>
</service>
<!--To enable Push Amplification-->
<meta-dataandroid:name="CLEVERTAP_BACKGROUND_SYNC"android:value="1"/>
<!-- Don't delete the meta-data below. This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-dataandroid:name="flutterEmbedding"android:value="2" />
</application>
</manifest>
The text was updated successfully, but these errors were encountered:
@darshanclevertap Seems like the issue is device-specific as most of the devices for our app are getting the notification icon. You may close the issue. Thanks for the help.
Notification pushed from Clevertap dashboard (Android) shows a white stub instead of the app icon in the notification system tray.
However, firebase notifications pushed from our custom backend server works fine and displays with the app icon properly.
Device info
AndroidManifest
The text was updated successfully, but these errors were encountered: