tooot/src/startup/push.ts

16 lines
338 B
TypeScript
Raw Normal View History

2021-02-27 16:33:54 +01:00
import * as Notifications from 'expo-notifications'
import log from './log'
const push = () => {
log('log', 'Push', 'initializing')
Notifications.setNotificationHandler({
handleNotification: async () => ({
2021-03-01 00:28:14 +01:00
shouldShowAlert: false,
2021-02-27 16:33:54 +01:00
shouldPlaySound: false,
shouldSetBadge: false
})
})
}
export default push