Message Receive Status
Changes the status for receiving push notification messages.
Call Information
PushNotification.Change(bool receiveYn, bool receiveNightYn, PlayNANOODelegate callback) {}
Call Information Details
Parameter | Description | Type |
---|---|---|
receiveYn | Push notification message receive status | boolean |
receiveNightYn | Push notification message receive during night time status (9 PM to 8 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");
}
});
}
}
Communication Result
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Status" : "String"
}
Communication Result Details
Data Key | Description | Type |
---|---|---|
Status | Operation result | string |