I’m having trouble with os.execute on the device (ipad in my case): it always returns an error code. It works OK in both the Corona and the XCode simulators, but not on the actual device.
Simple example: os.execute(“ls”)
Is this even supposed to work on the device? [import]uid: 6795 topic_id: 4124 reply_id: 304124[/import]
os.execute as well as other features that load arbitrary code into the app is not enabled. this is not a bug, rather, it is by design to adhere to apple’s developer agreement.
Os.execute did work at one time on the iPhone but it looks like Apple has restricted it’s use. I’ll update the API page.
[import]uid: 7559 topic_id: 4124 reply_id: 40901[/import]
It’s really too bad that this doesn’t work on a device. I have been looking for a way to insure that gps is running on the device and this seemed like my best shot at that. (couldn’t this be made to work on the android OS? I didn’t think they had quite the same restrictions as apple) [import]uid: 40100 topic_id: 4124 reply_id: 41047[/import]