decord/alpha/source/modules/debug/getPushNotificationLogs.android.tsx

23 lines
865 B
TypeScript

// Module ID: 10431
// Function ID: 10432
// Name: getPushNotificationLogs
// Dependencies: [502, 9934, 2]
// Exports: default
// Module 10431 (getPushNotificationLogs)
import NativePushNotificationMonitorModuleDefault from "NativePushNotificationMonitorModule" /* 9934 */;
import AuthenticationStore from "AuthenticationStore" /* 502 */;
const size = fn(2);
const result = size.fileFinishedImporting("modules/debug/getPushNotificationLogs.android.tsx");
export default function getPushNotificationLogs() {
const pushNotificationLogs = NativePushNotificationMonitorModuleDefault.getPushNotificationLogs(AuthenticationStore.getId());
return pushNotificationLogs.then((result) => {
let pushNotifications = JSON.parse(result).pushNotifications;
if (pushNotifications == null) {
pushNotifications = [];
}
return pushNotifications;
});
};