FlowRouter Triggers don't work good in meteor mobile app


#1

When I use FlowRouter Triggers in web app it is ok but when I build mobile app triggers don’t work. Please can somebody help me?

FlowRouter.route(’/’,
{
triggersEnter: [function (context, redirect){
Meteor.call(‘count’, function(err, response){
if(err){
BlazeLayout.render(‘server’);
}else{
if(response == null || response == undefined){
BlazeLayout.render(‘server’);
}
}
});
}],

action: function (params, queryparams) {
    BlazeLayout.render('login');
},
name: 'base'

});

this trigger call meteor server side method (count) this method call
rest ful service on any remote server. If response is not null then
connection with server is ok and the login page is displayed else server
page is displayed. In this page user setup ip adresse and port of the
remote server