Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3178296
D10014.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D10014.diff
View Options
diff --git a/native/push/ios.js b/native/push/ios.js
--- a/native/push/ios.js
+++ b/native/push/ios.js
@@ -75,15 +75,17 @@
return !permissions.alert || !permissions.badge || !permissions.sound;
}
+export type CoreIOSNotificationBackgroundData = {
+ +messageInfosArray: $ReadOnlyArray<string>,
+};
+
function getCommIOSNotificationsEventEmitter(): NativeEventEmitter<
$ReadOnly<{
remoteNotificationsRegistered: [{ +deviceToken: ?string }],
remoteNotificationsRegistrationFailed: [void],
notificationReceivedForeground: [CoreIOSNotificationData],
notificationOpened: [CoreIOSNotificationData],
- notificationReceivedBackground: [
- { +messageInfosArray: $ReadOnlyArray<string> },
- ],
+ notificationReceivedBackground: [CoreIOSNotificationBackgroundData],
}>,
> {
return new NativeEventEmitter(CommIOSNotifications);
diff --git a/native/push/push-handler.react.js b/native/push/push-handler.react.js
--- a/native/push/push-handler.react.js
+++ b/native/push/push-handler.react.js
@@ -68,6 +68,7 @@
iosPushPermissionResponseReceived,
CommIOSNotifications,
getCommIOSNotificationsEventEmitter,
+ type CoreIOSNotificationBackgroundData,
} from './ios.js';
import {
type MessageListParams,
@@ -591,7 +592,9 @@
);
};
- iosBackgroundNotificationReceived = backgroundData => {
+ iosBackgroundNotificationReceived = (
+ backgroundData: CoreIOSNotificationBackgroundData,
+ ) => {
const convertedMessageInfos = backgroundData.messageInfosArray
.flatMap(convertNotificationMessageInfoToNewIDSchema)
.filter(Boolean);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 9, 1:32 AM (21 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2447249
Default Alt Text
D10014.diff (1 KB)
Attached To
Mode
D10014: [Flow202][native][skip-ci] [30/x] Type PushHandler.iosBackgroundNotificationReceived
Attached
Detach File
Event Timeline
Log In to Comment