Minor fixes

This commit is contained in:
Milan Paunovic
2024-10-31 23:41:54 +01:00
parent 641d65a736
commit 539cbd9f10
12 changed files with 283 additions and 54 deletions

View File

@ -59,7 +59,7 @@ async function registerForPushNotificationsAsync() {
}
if (finalStatus !== 'granted') {
alert('Failed to get push token for push notification!');
// alert('Failed to get push token for push notification!');
return;
}
@ -76,11 +76,11 @@ async function registerForPushNotificationsAsync() {
console.log('Push Token:', token);
return token;
} catch (error) {
alert(`Error getting push token: ${error}`);
// alert(`Error getting push token: ${error}`);
throw error;
}
} else {
alert('Must use a physical device for push notifications');
// alert('Must use a physical device for push notifications');
}
}