codestates / medisharp-client

🗓 촬영 한 번으로 약 정보를 얻고, 해당 약의 복용 일정도 관리할 수 있는 모바일 서비스 '약올림'.💊 건강도, 편리함도 한 단계 올려보세요.
2 stars 0 forks source link

[Client]/#14/Push Notification/초기세팅 #109

Closed Gracechung-sw closed 3 years ago

Gracechung-sw commented 3 years ago
  1. expo install expo-notifications, expo install expo-constants 해주었습니다.
  2. Android Open your app.json and add the following inside of the "expo" field:
    {
    "expo": {
    ...
    "android": {
      ...
      "useNextNotificationsApi": true,
    }
    }
    }
  3. push 허용 권한 묻기
  4. 일단 알람 등록 버튼에 바로 하드코딩된 push 예약하는 코드 작성 reference: https://docs.expo.io/versions/latest/sdk/notifications/