Skip to main content

Message Receive Status

Changes the status for receiving push notification messages.

Call Information

PushNotification.Change(bool receiveYn, bool receiveNightYn, PlayNANOODelegate callback) {}

Call Information Details

ParameterDescriptionType
receiveYnPush notification message receive statusboolean
receiveNightYnPush notification message receive during night time status (9 PM to 8 AM next day)boolean
callbackCommunication resultPlayNANOODelegate

Source Code

using PlayNANOO;

public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;

void Start()
{
plugin = Plugin.GetInstance();

bool receiveYn = true;
bool receiveNightYn = true;
plugin.PushNotification.Change(receiveYn, receiveNightYn, (status, errorCode, jsonString, values) => {
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log("Success");
}
else
{
Debug.Log("Fail");
}
});
}
}

Communication Result

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Status" : "String"
}

Communication Result Details

Data KeyDescriptionType
StatusOperation resultstring