示例#1
0
    // //this is raised when a notification is failed due to some reason
    public static void NotificationFailed(PushSharp.Apple.ApnsNotification Notification, Exception exception)
    {
        MyWebEntryPoint mw = new MyWebEntryPoint(null);

        //mw.HandleRequest(null, null);
        com.progamma.IDVariant ErrorMessage = new com.progamma.IDVariant();
        ErrorMessage.set(new com.progamma.IDVariant(exception.InnerException.Message.ToString()));
        PushAppEvents.ONNotificationFailed(Notification, ErrorMessage, mw, mw.getIMDB());
        mw.CloseAllDBConnections();
    }
示例#2
0
    // //this is raised when a notification is failed due to some reason
    public static void NotificationFailed(INotification notification, String error)
    {
        MyWebEntryPoint mw = new MyWebEntryPoint(null);

        com.progamma.IDVariant ErrorMessage = new com.progamma.IDVariant();
        ErrorMessage.set(new com.progamma.IDVariant(error));

        IosNotification IosNotif = (IosNotification)notification;

        PushNotificationWrapperEvents.ONNotificationFailed(IosNotif, ErrorMessage, mw, mw.getIMDB());

        mw.CloseAllDBConnections();
    }