Releases: chabokpush/chabok-client-js
Releases · chabokpush/chabok-client-js
v1.4.0
- Add
incrementUserAttribute
method for incrementing user's numerical attributes. (supports an array of user attributes) - Now Chabok supports user revenue with
trackPurchase
method. - Introduce
notifDelivery
to handle notification impression. - Improve behavior of
subscribe
methods - Add
getUserAttributes
andsetUserAttributes
method. - Now Chabok supports rich notifications (actions, image, direction and vibration)
- Now Chabok tracks user's installs and add to home screen date (for PWA)
- Improve notification display in android devices
- Improve connection management
- Add analytics for click on notifications (actions and dismiss)
- Add
notificationOpened
event for receiving notification actions. - Improve updating push notification token
- Now Chabok supports direct/in-direct notification influence.
- Now
registerAsGuest
method support getting guestUserId as parameter - Update
ChabokSDKWorker.js
file
Upgrade:
getUserInfo
andsetUserInfo
is deprecated and replaced withgetUserAttributes
andsetUserAttributes
.- Moving custom data to data key in
publishEvent
andtrack
methods.
v1.3.0
- Ignore resubscribe on channel for users already subscribed
- Improve behavior of
subscribe
andunSubscribe
methods - Detect users adding your website to their home screen
- Add
serviceWorker
config for handling multiple service-workers at the same time:
const options = {
webpush: {
enabled: true,
publicKey: 'PUBLIC_KEY'
},
silent: false,
serviceWorker : {
path : '/service-worker.js',
scope: '/'
}
};
v1.2.3
v1.2.3 2019/04/10
- Improving token handling on initialization
- Improving error handling
v1.2.2
v1.2.1
- Add
registerAsGuest
method
v1.2.0
- Redirect notification clicks to
/
as default path - Improve token subscription handling
- Add
tokenStatus
- Fix
subscribe
,unsubscribe
andpublish
issue when user was not registered
v1.0.3 2018-10-20
- Register
ChabokSDKWorker.js
inroot
instead of relative addressing
v1.0.2 2018-10-15
- Add
getTags
function. - Group notifications with
groupId
v1.0.1 2018-09-04
- Implement re-register support inside
register
method - Unregister now removes current installation
- Add
setUserInfo
andgetUserInfo
methods - Add
addTag
andaddTags
methods - Add
removeTag
andremoveTags
methods
Don't register automatically on page load
- Track event
- Change publish event default to live
- Add notification onClick url
- Don't
register
automatically on page load - Fix
isRegistered
always returning true register
method promise now resolves in all situations- Respect silent in-app Chabok messages