Page 1 of 1

iPhone API

PostPosted: Fri Nov 18, 2016 1:54 pm
by Prairie
Are there any tools to call iPhone data such as gps location, iPhone orientation from within MorphEngine?

Re: iPhone API

PostPosted: Sun Nov 27, 2016 6:24 pm
by oliver
There isn't in MorphEngine but there's support for some of these things in ND1 through the appropriate Web APIs. (ND1 uses UIWebKit and functions, incl. user functions have full access to all that HTML5 provides.)
For GPS, see https://developer.mozilla.org/en-US/doc ... eolocation
For screen orientation, just access window.orientation, as in
Code: Select all
 function() { return orientation; }