Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

 1 Answer(s)

  • You can redirect to another page in notification success callback. Like in iOS:

    function onNotificationAPN (event) {
        if ( event.alert )
        {
           document.location.href = 'path to your file/notification.html';
        }
    }
    

    and in Android:

    var onNotificationGCM = function(e) {
        // Check which event:
        switch(e.event)
        {
            case 'registered' :
            {
                deviceToken = e.regid;
                break;
            }
            case 'message':
            {
                // this is the actual push notification. its format depends on the data model from the push server
                var message = e.message;
                document.location.href = 'path to your file/notification.html';
                break;
            }
        }
    };
    
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: