jpush / jpush/jpush-react-native

按照文档里进行安卓集成,错误提示如下

Open
#767 4 comments 0 reactions 0 assignees View on GitHub

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的时候就会出现如下错误

重现步骤

  1. 正常运行就会出现这个错误

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.