Say you have a Cordova app published on the App Store. The codebase is deployed to mobile.myapp.com so that the installed apps can automatically get updated through hot code pushes.
How do you prevent people from accessing the app through a browser by pointing to this given URL?
Right now, i have this line in the /lib folder that does the trick:
if (Meteor.isClient && !Meteor.isCordova) { window.location.href = 'http://myapp.com'; }
I guess I could also do that with a server-side redirect by looking at user-agents.
I’m now wondering if there is no way to force the Meteor.isCordova() to true from the browser. This looks like the kind of things that have to be controled from the server side.