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
feat(messaging, android): add priority + originalPriority to RemoteMessage
messages may be sent as high priority but downgraded to normal priority on
delivery and it is very important for applications to know this
if a priority is downgraded from high to normal, the application may not
start foreground services and the app will crash if a foreground start is
attempted
see invertase/notifee#470
Copy file name to clipboardExpand all lines: packages/messaging/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingSerializer.java
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,8 @@ public class ReactNativeFirebaseMessagingSerializer {
* Options for features provided by the FCM SDK for Web.
148
148
*/
149
149
fcmOptions: FcmOptions;
150
+
151
+
/**
152
+
* Priority - android-specific, undefined on non-android platforms, default PRIORITY_UNKNOWN
153
+
*/
154
+
priority?: MessagePriority;
155
+
156
+
/**
157
+
* Original priority - android-specific, undefined on non-android platforms, default PRIORITY_UNKNOWN
158
+
*/
159
+
originalPriority?: MessagePriority;
160
+
}
161
+
162
+
/**
163
+
* Represents the priority of a RemoteMessage
164
+
*
165
+
* Note: this is an android-specific property of RemoteMessages
166
+
*
167
+
* See https://github.com/firebase/firebase-android-sdk/blob/b6d01070d246b74f02c42da5691f99f52763e48b/firebase-messaging/src/main/java/com/google/firebase/messaging/RemoteMessage.java#L57-L64
0 commit comments