示例#1
0
    // Events

    //this even raised when a notification is successfully sent
    public static void NotificationSucceeded(INotification notification)
    {
        MyWebEntryPoint mw       = new MyWebEntryPoint(null);
        IosNotification iosNotif = (IosNotification)notification;

        PushNotificationWrapperEvents.ONNotificationSucceeded(iosNotif, mw, mw.getIMDB());
        mw.CloseAllDBConnections();
    }
示例#2
0
    // Events



    //this even raised when a notification is successfully sent
    public static void NotificationSucceeded(PushSharp.Apple.ApnsNotification Notification)
    {
        MyWebEntryPoint mw = new MyWebEntryPoint(null);

        //mw.HandleRequest(null, null);
        PushAppEvents.ONNotificationSucceeded(Notification, mw, mw.getIMDB());
        mw.CloseAllDBConnections();
    }
示例#3
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();
    }
示例#4
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();
    }