Releases: jpush/jpush-react-native
Releases · jpush/jpush-react-native
升级 SDK
升级 SDK
fix bug
Add getLaunchAppNotification API
Change Log:
- unify remote notifcation field, iOS will add extras field just like android. NOTICE: If you extras-keys contain extras key, it will move into extras field, so you need adjust you code like that:
JPushModule.addReceiveNotificationListener( notification => {
// old:
const oldExtrasString = notifcation.extras;
// new:
const newExtrasString = notification.extras.extras;
})
Add API:
支持 cocoapods
Change Log:
- 支持 Cocoapods 方式集成
在 Podfile 中添加如下代码:
pod 'JPushRN', :path => '../node_modules/jpush-react-native'
终端执行如下指令:
pod install
Release 2.1.6
Change Log:
iOS:
android:
- combine getRegistrationId and addGetRegistrationIdListener.
升级 SDK
Change Log:
iOS:
原生 SDK 升级到 3.0.7
Android
原生 SDK 升级到 3.0.9
jpush-react-native 2.1.3 需要安装 jcore-react-native 1.2.1 版本
Fix Bug
Change Log
- Add
sendLocalNotification
usage:
var notification = {
buildId: 1,
id:5,
title:'jpush',
content:'This is a test!!!!',
extra:{key1:'value1',key2:'value2'},
fireTime:2000,
}
JPushModule.sendLocalNotification(notification);
jpush-react-native > 2.1.1 目前支持最新 react native 版本为 0.49.2
新增 API
Change Log
Android
-
add
setLatestNotificationNumber
, fix #317 -
add
setSilenceTime
-
add
setPushTime
see Android API for detail.
v2.0.6 Release
Change Log:
Add APi:
iOS:
- getBadge
获取当前 badge 值
JPushModule.getBadge((badge) => {
console.log(badge)
});