logo
In-app Chat
SDK Error Codes
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

protected abstract void onThroughMessage(Context context, ZPNsMessage message);

New method

protected abstract void onThroughMessageReceived(Context context, ZPNsMessage message);

Changes to ZPNsConfig configuration class properties

Enable Google FCM push

Old property

public boolean fcm_push;

New property

public boolean enableFCMPush;

Changes to ZPNsConfig configuration class methods

Enable Google FCM push

Old method

public ZPNsConfig enableFCMPush(boolean enable);

New method

public ZPNsConfig enableFCMPush();

New methods in ZPNsConfig configuration class

Disable Google FCM push

public ZPNsConfig disableFCMPush();

Previous

ZIM upgrade guide

Next

Authentication