This commit is contained in:
Eric Bailey
2025-06-24 15:56:31 -05:00
parent 6a6a68f347
commit 1b12e17bbe
+3 -1
View File
@@ -78,10 +78,12 @@ export function useNotificationsRegistration() {
getPushToken()
}
/*
/**
* According to the Expo docs, there is a chance that the token will change
* while the app is open in some rare cases. This will fire
* `registerPushToken` whenever that happens.
*
* @see https://docs.expo.dev/versions/latest/sdk/notifications/#addpushtokenlistenerlistener
*/
const subscription = Notifications.addPushTokenListener(async newToken => {
registerPushTokenDebounced(agent, currentAccount, newToken)