Skip to content

Commit

Permalink
hotfix/request-notification-permission-1: 알림 권한 묻고 토큰 생성 안전하게 (#209)
Browse files Browse the repository at this point in the history
* hotfix/request-notification-permission-1: 알림 권한 묻고 토큰 생성 안전하게

* hotfix/request-notification-permission-2: prettier

* hotfix/request-notification-permission-3: AccessPage 되살리기
  • Loading branch information
KooSuYeon committed Jan 23, 2025
1 parent bb52047 commit 11d1153
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/pages/login/LoginPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,6 @@ const LoginPage = () => {
await Notifications.getPermissionsAsync();
let finalStatus = existingStatus;

if (existingStatus !== "granted") {
const { status } =
await Notifications.requestPermissionsAsync();
finalStatus = status;
}

if (finalStatus !== "granted") {
token = "undefined";
console.log("Push notification permissions not granted");
Expand Down

0 comments on commit 11d1153

Please sign in to comment.