react-native-push-notification: Android에서 custom sound가 안울림 / android userInfo 오류
1. channel이 2개가 있는데 앱 내 설정된 소리로 있는 그 채널말고 다른 채널이 하나 더 있다. 그게 자꾸 울리는 것 같다......
2. library 3.4.0 -> 3.5.2 로 업그레이드
3. 경로 다시 설정. .mp3 없이. 그래도 안됨
https://github.com/zo0r/react-native-push-notification/issues/1432
Android - No sound on notifications? · Issue #1432 · zo0r/react-native-push-notification
Bug Using {playSound: true, soundName: 'default'} doesn't work with localNotification. This affects both iOS and Android. Are there limitations on local notifications? I am able to turn...
github.com
4. 3.5.2 -> 4.0.0 업데이트
그래도 안되면
5. 드디어 해결법 찾았다!
.mp3 제거하면 된다. 관련 이슈도 올려놓았다.
https://github.com/zo0r/react-native-push-notification/issues/1525
Custom Sound Issue on Android (I solved) · Issue #1525 · zo0r/react-native-push-notification
Please Edit README https://github.com/MaximusBaton/react-native-push-notification#custom-sounds Bug I wanted to set custom sound to local notification on Android (excluding iOS. So I don't know...
github.com
1. localScheduled ~~ 에 userInfo : {
id: '1',
routineId: '2'
이런식으로 해줘야 함.
number로 넣었더니 말썽. 그리고 버전은 4.0.0
'Solve Problem > Troubleshooting' 카테고리의 다른 글
react-native-push-notification 진동/무음모드 시 알람 울리기 (11) | 2020.08.10 |
---|---|
스플래시 스크린 작동 안함 / Splash Screen not working (2) | 2020.07.15 |
apk 설치하면 알 수 없는 크래시 (0) | 2020.07.11 |
KeyboardAvoidingView를 쓰지 않았는데도 키보드가 레이아웃에 영향을 줄 때 (0) | 2020.07.10 |
안드로이드 에뮬레이터 오프라인일 때 / Emulator Offline (2) | 2020.07.06 |