mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Rewrite timeline logic
This commit is contained in:
15
src/startup/push.ts
Normal file
15
src/startup/push.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import * as Notifications from 'expo-notifications'
|
||||
import log from './log'
|
||||
|
||||
const push = () => {
|
||||
log('log', 'Push', 'initializing')
|
||||
Notifications.setNotificationHandler({
|
||||
handleNotification: async () => ({
|
||||
shouldShowAlert: true,
|
||||
shouldPlaySound: false,
|
||||
shouldSetBadge: false
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
export default push
|
Reference in New Issue
Block a user