logo
In-app Chat
SDK Error Codes
Powered Byspreading
On this page

ZPNs upgrade guide


This article provides some instructions and considerations for upgrading the ZPNs Android platform SDK version.

2.2.0 Upgrade Guide

Warning

Please note that starting from version 2.2.0, there are significant changes to the API interface. Therefore, when upgrading from an older version to version 2.2.0, please read the following guide.

Changes to ZPNsMessageReceiver callback methods

Vendor through message callback

Old method

Untitled
protected abstract void onThroughMessage(Context context, ZPNsMessage message);
1
Copied!

New method

Untitled
protected abstract void onThroughMessageReceived(Context context, ZPNsMessage message);
1
Copied!

Changes to ZPNsConfig configuration class properties

Enable Google FCM push

Old property

Untitled
public boolean fcm_push;
1
Copied!

New property

Untitled
public boolean enableFCMPush;
1
Copied!

Changes to ZPNsConfig configuration class methods

Enable Google FCM push

Old method

Untitled
public ZPNsConfig enableFCMPush(boolean enable);
1
Copied!

New method

Untitled
public ZPNsConfig enableFCMPush();
1
Copied!

New methods in ZPNsConfig configuration class

Disable Google FCM push

Untitled
public ZPNsConfig disableFCMPush();
1
Copied!

Previous

ZIM upgrade guide

Next

Authentication