Posted 01 June 2012 - 03:37 PM
Can I have the app be shown on the desktop of iPhone (as an icon)like any other app, and when started get rid of the header and footer of the browser? Or something like that?
Presenting the app in the browser is not very appealing to me since I need to develop apps that behave,look and feel like regular apps on the iPhone. And considering the small desktop of a phone, and the big controls needed, I find it annoying to be forced to have fixed headers and footers, imposed by a browser, when that space could be used for the app itself.
Posted 01 June 2012 - 06:29 PM
Phonegap takes you html + js code and includes it as a resource file in a .exe stub. When this stub executes it creates a browser, sets it in fullscreen - and you html is loaded. It also disables some of the security stuff (like filesystem access and size of local storage and db access).
You can also check out the generates code by smart and learn from that.
1. When you open a smart app on your phone, select "add shortcut" and place the shortcut on the "desktop" of your iphone or ipad.
2. If you have checked the option "generate manifest file" and "serve manifest file " in the project options -- your app will be installed when you add a shortcut to it (see apple docs).
When you start the shortcut from the phone screen- it opens fullscreen, without any adress header or footer.
Note: When testing, i find it better to not serve the manifest, since that installs your app in the browser cache (and must be manually deleted). Just add a shortcut to the smart IP (shown in the browser window), and start that from your iphone or ipad -- it will then open in fullscreen.
You can fine-tune how the app behaves in the index.html file from within smart.
See the "meta" tags which define format detection, viewport etc..
Posted 02 June 2012 - 12:30 PM
This mode works best for one-off or custom applications that do not need to be deployed via the app store.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users