React-Native/Expo앱만들기

EXPO푸시알람 구현하기(2)

Dev갱이 2021. 12. 16. 13:22
728x90
이전글 정리후에 또 여기 정리할게용

푸시알람 전송까지 완료 했으나, 내가 원하는것은 바로 앱이 꺼져 있을때 푸시알람이 오면 그걸 눌렸을때 특정 페이지로 이동 하고 싶은데, 페이지 이동을 떠나서 문제는 앱이 꺼져 있을때 푸시 알람은 오는데 푸시알람을 클릭 했을때 안에 들어 있는 request.content.title 이나 request.content.body등이 비어있다... 왜 이럴까요?

분명 앱이 켜져 있을땐 잘된다!

 

 

//앱이 꺼져 있을때 해결 방법에 대한 정보

https://stackoverflow.com/questions/66548238/expo-notification-doesnt-fire-method-when-app-is-killed-closed

 

Expo notification doesnt fire method when app is killed/closed

im using react native expo and push notification works fine when app is running or in background but with the app is close. it doesnt call the method to handle the notification. I need to redirect to

stackoverflow.com

 

검색 키워드 : 

expo exit app push notification

 

728x90