mystor / meteor-device-detection

(NO LONGER SUPPORTED) Client-Side Device Type Detection & Template Switching with Optional Meteor-Router Support
MIT License
69 stars 17 forks source link

How does this work with Cordova? #12

Closed t3db0t closed 9 years ago

t3db0t commented 9 years ago

If the application is Cordova, what value will detectDevice() return?

mystor commented 9 years ago

I have no idea. I haven't done any work with meteor/cordova, and the detectDevice methods work by checking user agent. My guess is it would probably default to mobile.

t3db0t commented 9 years ago

Gotcha—I will probably try it out soon and report back ;)

t3db0t commented 9 years ago

Indeed, tried it out on the iOS simulator and it gave me the "phone" template.