jpush / jpush/jpush-react-native
按照文档里进行安卓集成,错误提示如下
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.4k
- Forks
- 348
- PR merge metrics
- No merged PRs in 30d
Description
你的运行环境
安卓9.0
- 插件版本:
- react-native 版本:0.59.0
期望效果
能顺利初始化
实际效果
在Jpush.setAlias的时候就会出现如下错误
重现步骤
- 正常运行就会出现这个错误
Debug logs
包括 Android 或 iOS 的日志:
java.lang.String cannot be cast to com.facebook.react.bridge.ReadableNativeMap
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 at the Jpush.setAlias call and inspect the Android debug log showing a String-to-ReadableNativeMap cast failure. Reproduce the initialization flow on Android 9 with React Native 0.59.0; done means initialization succeeds and setting an alias no longer produces this error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100