Skip to content Skip to sidebar Skip to footer

Navigate To A Specific Html Page On Clicking Toasts With Params (winjs)

I have a WinJS project and I receive toasts notification from my webservice. In my webservice my XML is like: string type = 'Computer'; string toast1 = '

Solution 1:

I was facing a similar issue. In my case I was calling functions even before cordova deviceready was fired. From your question not sure if yours is a cordova app or not but make sure all the required javascript files are loaded. You can execute your logic once document is ready. I assume you are using jquery.

functiononActivatedHandler(args) {
if (args.detail.kind === Windows.ApplicationModel.Activation.ActivationKind.launch) {
    $(document).ready(function(){
    var messageDetails = (args.detail.arguments).replace(/\\/g, '');
    PhonegapService.setNotificationMessage(messageDetails, function () {
        window.location.href = "page3.html";
    });
});
}

}

Post a Comment for "Navigate To A Specific Html Page On Clicking Toasts With Params (winjs)"