eletrotupi / tcc/ commit / 6360c22

api: testing endpoint for notifications

Pedro Lucas Porcellis porcellis@eletrotupi.com · 4 months ago 6360c22accc4412adcd963a4dbf983d2fc887eb1 Browse files
Parents 2963d71
Changed files
1
Additions
0
Deletions
-1
frontend/hooks/useRegisterPushToken.ts
1 -
// hooks/useRegisterPushToken.ts
2 1
import * as Notifications from "expo-notifications";
3 2
import * as Device from "expo-device";
4 3
import Constants from "expo-constants";
5 4

6 5
export async function registerForPushNotifications(): Promise<string | null> {
35 34
    })
36 35
  ).data;
37 36

38 37
  return token;
39 38
}