meteor Mobile Apps Detecting the deviceready event


Example

Of course, the best way to detect mobile is for the hardware to notify you directly. Cordova PhoneGap exposes a 'deviceready' event, that you can add an event listener to.

 document.addEventListener('deviceready', function(){
  Session.set('deviceready', true);
 }, false);