File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change 11/* @flow strict-local */
2- import PushNotificationIOS from '@react-native-community/push-notification-ios' ;
3-
42import type { Notification } from './types' ;
53import { makeUserId } from '../api/idTypes' ;
64import type { JSONableDict , JSONableInput , JSONableInputDict } from '../utils/jsonable' ;
@@ -170,20 +168,3 @@ export const fromAPNs = (data: ?JSONableDict): Notification | void => {
170168
171169// Despite the name `fromAPNs`, there is no parallel Android-side `fromFCM`
172170// function here; the relevant task is performed in `FcmMessage.kt`.
173-
174- /**
175- * Extract Zulip notification data from the blob our iOS libraries give us.
176- *
177- * On validation error (indicating a bug in either client or server),
178- * logs a warning and returns void.
179- *
180- * On valid but unrecognized input (like a future, unknown type of
181- * notification event), returns void.
182- */
183- export const fromPushNotificationIOS = ( notification : PushNotificationIOS ) : Notification | void => {
184- // This is actually typed as ?Object (and so effectively `any`); but if
185- // present, it must be a JSONable dictionary. It's giving us the
186- // notification data, which was passed over APNs as JSON.
187- const data : ?JSONableDict = notification . getData ( ) ;
188- return fromAPNs ( data ) ;
189- } ;
You can’t perform that action at this time.
0 commit comments