MCPcopy Create free account
hub / github.com/CommE2E/comm / prepareAndroidVisualNotification

Function prepareAndroidVisualNotification

keyserver/src/push/send.js:1086–1102  ·  view source on GitHub ↗
(
  inputData: AndroidNotifInputData,
  devices: $ReadOnlyArray<NotificationTargetDevice>,
)

Source from the content-addressed store, hash-verified

1084}
1085
1086async function prepareAndroidVisualNotification(
1087 inputData: AndroidNotifInputData,
1088 devices: $ReadOnlyArray<NotificationTargetDevice>,
1089): Promise<$ReadOnlyArray<TargetedAndroidNotification>> {
1090 const convertedData = await validateOutput(
1091 inputData.platformDetails,
1092 androidNotifInputDataValidator,
1093 inputData,
1094 );
1095
1096 const { targetedNotifications } = await createAndroidVisualNotification(
1097 encryptedNotifUtilsAPI,
1098 convertedData,
1099 devices,
1100 );
1101 return targetedNotifications;
1102}
1103
1104async function prepareWebNotification(
1105 inputData: WebNotifInputData,

Callers 1

preparePushNotifFunction · 0.85

Calls 2

validateOutputFunction · 0.90

Tested by

no test coverage detected