jpush / jpush/jpush-react-native

_jpushReactNative.default.addReceiveNotificationListener is not a function

Open
#714 2 comments 2 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

运行环境

  • jpush-react-native:2.6.1
  • react-native 版本:0.61.2
    无法注册监听事件,如下报错了
    屏幕快照 2019-11-22 上午11 17 50

const Receive=(message:any)=>{
console.log("接收到了推送事件")
console.log(message);
}
JPushModule.addReceiveNotificationListener(Receive)

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

Reproduce the reported error with jpush-react-native 2.6.1 and React Native 0.61.2 using the shown addReceiveNotificationListener call. Check the listener API and platform setup first; done means registration no longer raises the TypeError and the Receive callback is invoked for a notification.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.