Skip to main content

Message Receive Settings

Changes the receive settings for push messages.

Call Information

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

Call Details

ParameterDescriptionType
receiveYnWhether to receive push messagesboolean
receiveNightYnWhether to receive nighttime push messages (9:00 PM ~ 8:00 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");
}
});
}
}

Response

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

Response Details

Data KeyDescriptionType
StatusProcessing resultstring