jpush / jpush/jpush-react-native
Android 使用 setChannelAndSound API 但是无法实现 自定义声音
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.4k
- Forks
- 348
- PR merge metrics
- No merged PRs in 30d
Description
你的运行环境
- 插件版本: "jcore-react-native": "^2.1.3",
"jpush-react-native": "^3.0.4", - react-native 版本:0.69.12
期望效果
告诉我们你希望达到什么效果。
Android 可以实现自定义声音
实际效果
告诉我们实际是什么效果。
Android 极光推送没有任何声音
重现步骤
- JPush init以后 调用 JPush.setChannelAndSound API 传递参数 channel、channelId、sound 触发自定义声音的订阅
- 后端 进行 进行消息推送
- Android APP 可以接收到 极光消息,但是没有任何声音
Debug logs
包括 Android 或 iOS 的日志:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the JPush.setChannelAndSound call described in the reproduction steps and reproduce it using the listed React Native and plugin versions. Check the Android-side handling of channel, channelId, and sound, then verify the result with a backend push. Done means the app receives the notification and plays the configured custom sound.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, react-native
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100