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
Improves notification configuration by first checking
`expo-notifications` plugin for icon and color.
Falls back to deprecated `config.notification` settings.
Warns about missing notification icon for Android.
// If the notification object is not defined, print a friendly warning
34
-
if(!config.notification){
67
+
const{ icon, color }=getNotificationConfig(config);
68
+
if(!icon){
35
69
// This warning is important because the notification icon can only use pure white on Android. By default, the system uses the app icon as the notification icon, but the app icon is usually not pure white, so you need to set the notification icon
36
70
// eslint-disable-next-line no-console
37
71
console.warn(
38
72
'For Android 8.0 and above, it is necessary to set the notification icon to ensure correct display. Otherwise, the notification will not show the correct icon. For more information, visit https://docs.expo.dev/versions/latest/config/app/#notification',
39
73
);
40
-
returnconfig;
41
74
}
42
75
43
76
// Defensive code
@@ -46,7 +79,7 @@ export function setFireBaseMessagingAndroidManifest(
0 commit comments