mirror of https://github.com/tooot-app/app
16 lines
338 B
TypeScript
16 lines
338 B
TypeScript
import * as Notifications from 'expo-notifications'
|
|
import log from './log'
|
|
|
|
const push = () => {
|
|
log('log', 'Push', 'initializing')
|
|
Notifications.setNotificationHandler({
|
|
handleNotification: async () => ({
|
|
shouldShowAlert: false,
|
|
shouldPlaySound: false,
|
|
shouldSetBadge: false
|
|
})
|
|
})
|
|
}
|
|
|
|
export default push
|