NativeScript passing context from app.js directly

62 views Asked by At

I have nativescript app where in app.js is set:

application.run({ 
    moduleName: "app-root/app-root", 
    context: { 
        param1: "A",
        param2: "B",
        param3: "C",
        param4: "D" 
    } 
});

This fires up app-root (Side drawer) but does not pass any params to it. Is this even possible to use this way? I have push notifications implemented and when notification fires up app, it should send received params to "app-root" page. I've tried with appSettings but it's not best (speed) option. Any suggestions? Thx

Thanks

0

There are 0 answers