コード例 #1
0
 public static void RegisterForPushNotifications(PubServicesPushNotificationType type)
 {
     if (IsInitialized())
     {
         SharedInstance._instance.RegisterForPushNotifications(type);
     }
 }
        public void RegisterForPushNotifications(PubServicesPushNotificationType type)
        {
            Debug.Log("RegisterForPushNotifications called");
            string senderId = AdColony.AdColonyRuntimeConfig.GCMSenderId;

            if (string.IsNullOrEmpty(senderId))
            {
                Debug.LogError("GCMSenderId not set in Tools->AdColony->Settings...");
                return;
            }
            _plugin.CallStatic("registerForPushNotifications", senderId);
        }