Skip to content

Releases: jpush/jpush-react-native

v1.4.4 release

15 Feb 02:30
Compare
Choose a tag to compare

Separate jpush-react-native into jcore-react-native and jpush-react-native.
After the later version,jpush-react-native and jcore-react-native need to be installed together.

v1.4.0 release

08 Feb 12:44
Compare
Choose a tag to compare

delete package dependence.

dependence is not necessary,it will conflict with react-native module

v1.3.9 release

08 Feb 05:41
Compare
Choose a tag to compare

v1.3.6 Release

19 Jan 05:34
Compare
Choose a tag to compare

Change log

  • Android
    JS side can receive extras if there has extras in custom message.

Example:

JPushModule.addReceiveCustomMsgListener((map) => {
      this.setState({
        pushMsg: map.message
      });
      console.log("message: " + map.message);
      console.log("extras: " + map.extras);
    });

v1.3.5 Release

17 Jan 02:58
Compare
Choose a tag to compare

Change Log

Android

  • Use jpush-android-v3.0.1
  • Add API: addGetRegistrationIdListener() and removeGetRegistrationIdListener().

Server will return registrationId if device registered successfully(after initJPush).

Usage:

componentDidMount() {
    JPushModule.addGetRegistrationIdListener((registrationId) => {
        console.log("Device register succeed, registrationId " + registrationId);
    });
}

componentWillUnmount() {
    JPushModule.removeGetRegistrationIdListener("getRegistrationId");
}

v1.3.4 Release

09 Jan 12:56
Compare
Choose a tag to compare

Change log:
iOS:
update JPush SDK to 3.0.1

fix bug:
OpenNotification event is dispatched twice

v1.3.3 Release

06 Jan 09:09
Compare
Choose a tag to compare

Change log:

iOS:

  1. OpenNotification 事件将用于处理所有的点击推送事件。(iOS 10 )

在 Appdelegate.m 文件中 jpushNotificationCenter didReceiveNotificationResponse 方法需要做如下修改。

// iOS 10 Support
- (void)jpushNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void (^)())completionHandler {
  // Required
  NSDictionary * userInfo = response.notification.request.content.userInfo;
  if([response.notification.request.trigger isKindOfClass:[UNPushNotificationTrigger class]]) {
    [JPUSHService handleRemoteNotification:userInfo];
    [[NSNotificationCenter defaultCenter] postNotificationName:kJPFOpenNotification object:userInfo];
  }
  completionHandler();  // 系统要求执行这个方法
}

v1.3.2 Release

06 Jan 04:03
Compare
Choose a tag to compare

Change Log

  • Android

i. use jpush-android-v3.0.0.

ii. Open notification will judge if app is running on background, if running, then open app, else not. See more information if you want to open appointed Activity , please customise here. Reference this article for more detail.

JPush-react-native 1.2.9 发布

20 Dec 15:41
Compare
Choose a tag to compare
  1. 更新 jpush iOS sdk 到 3.0.0
  2. iOS 添加 打开推送的缓存,在reactjs 启动的时候才分发到 js 层。
    通过监听 OpenNotification 这个事件,通过如下代码,
NativeAppEventEmitter.addListener(
  'OpenNotification',
  (notification) => console.log(notification)
);
  1. iOS 添加 getRegistrationID 缓存在 JPush 成功登陆后,这个方法自动回调

4.修改 iOS 自动化配置脚本,添加接口推送的事件代码。
用户只需要关注 js 层的调用即可。

v1.2.3 Release

02 Nov 08:04
Compare
Choose a tag to compare

Android update

  • 不在 node_modules 做 APPKey 设置动作,而是移动到开发者项目中进行设置,参见 ReadMe;
  • 更新脚本(目前仍需手动更新 build.gradle 中关于 APPKey 的设置)
  • jpush 版本更新至 jpush-android-2.2.0