allowPushNotifications

public static void allowPushNotifications(Context context, boolean allowPush)

Method that will notify the server not to send push messages to this device.

Parameters

context

The context of calling application.

allowPush

A boolean that will tell the server to send push messages or not. Defaults to true.