0

I have two templates. The first is browser based called "home" and the second is mobile (iOS and Android) called "mobileHome".

I have tried every known version of registering a global helper possible and while they appear on the browser template they do not appear on the mobile version.

main.js

Template.registerHelper('groupId', function () {    
  return 'hi, madeup group id here';
});    

Handlebars.registerHelper('isMainApp', function () {
  console.log('hello')
  return 'hello this is mobileMainApp';
});

UI.registerHelper('what', function () {
  return 'what ui call';
});

UI.body.helpers({
  fund: function(){
    return 'hey template .body';
  }
})

Any suggestions to make the above appear in mobile environments?

agrm
  • 3,296
  • 4
  • 23
  • 32
Cody Higdem
  • 43
  • 1
  • 9
  • You can try the answers suggested [here](http://stackoverflow.com/questions/21745538/how-to-check-mobile-web-in-html-meteor) to find about the environment. – Sudheer Jami May 18 '17 at 01:56
  • @SudheerJami Thanks for that but I already know how to determine if it's a mobile or web. My issue is related to global helpers not being registered in mobile environments. – Cody Higdem May 19 '17 at 18:52

0 Answers0