Exemplo n.º 1
0
            public void OnFailure(JSONObject jsonObject)
            {
                Dictionary <string, object> dict = null;

                if (jsonObject != null)
                {
                    dict = Json.Deserialize(jsonObject.ToString()) as Dictionary <string, object>;
                }
                OneSignal.onPostNotificationFailed(dict);
            }
Exemplo n.º 2
0
 public void PostNotificationFailureHandler(Foundation.NSError error)
 {
     if (error.UserInfo != null && error.UserInfo ["returned"] != null)
     {
         Dictionary <string, object> dict = NSDictToPureDict(error.UserInfo);
         OneSignal.onPostNotificationFailed(dict);
     }
     else
     {
         OneSignal.onPostNotificationFailed(new Dictionary <string, object> {
             { "error", "HTTP no response error" }
         });
     }
 }