iPhone API

General Discussions about the API

iPhone API

Postby Prairie » Fri Nov 18, 2016 1:54 pm

Are there any tools to call iPhone data such as gps location, iPhone orientation from within MorphEngine?
Prairie
 
Posts: 26
Joined: Mon Sep 30, 2013 2:47 pm

Re: iPhone API

Postby oliver » Sun Nov 27, 2016 6:24 pm

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; }
oliver
Site Admin
 
Posts: 433
Joined: Sat May 01, 2010 2:11 pm


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron