mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-24 09:33:42 -04:00
Uncomment
This commit is contained in:
@@ -11,10 +11,10 @@ export default function AndroidPush() {
|
||||
if (!user?.id || !isAndroid) return
|
||||
console.log('AndroidPush', user)
|
||||
|
||||
// PushNotifications.requestPermissions().then(result => {
|
||||
// if (result.receive !== 'granted') return
|
||||
// PushNotifications.register()
|
||||
// })
|
||||
PushNotifications.requestPermissions().then(result => {
|
||||
if (result.receive !== 'granted') return
|
||||
PushNotifications.register()
|
||||
})
|
||||
|
||||
PushNotifications.addListener('registration', async token => {
|
||||
console.log('Device token:', token.value)
|
||||
|
||||
Reference in New Issue
Block a user