Message Receive Settings
Changes the receive settings for push messages.
Call Information
PushNotification.Change(bool receiveYn, bool receiveNightYn, PlayNANOODelegate callback) {}
Call Details
| Parameter | Description | Type |
|---|---|---|
| receiveYn | Whether to receive push messages | boolean |
| receiveNightYn | Whether to receive nighttime push messages (9:00 PM ~ 8:00 AM next day) | boolean |
| callback | Communication result | PlayNANOODelegate |
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 Key | Description | Type |
|---|---|---|
| Status | Processing result | string |