For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 8 replies, 3 voices, and was last updated 13 years, 8 months ago by
paulD.
-
AuthorPosts
-
paulDMemberHi
Finally got my first complete app built and installed on my IPAD! Hooray! But unfortunately it has some problems when i run it on the My IPAD2.Everything runs fine in the test centre. The app is a checklist app with procedure lists. using this method I got help with a few weeks ago.
http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=3895
The problem is when i run it on the IPad there is a huge delay from pressing the button and the button operating the toggle and colour change. this has made the lists unusable. The second problem is when i shut down the app and restart it remembers the last page and list selections. How do i get the app to start from the beginning again?
The rest of the app which contains lots of images and text runs great with no probs but soon as you try and use the lists it falls over.
I want to start selling the completed app in the near future so any help you can give me would be of great help.
Thanks
Paul
November 16, 2012 at 6:08 am #332389
paulDMemberJust a little update, i’ve done a little testing and added a simple 3 piece select list item to the page. This works better than the colour change ones i am using but there is still a noticeable delay before the list item selects.
Just a bit of backgound info –
I’m using the latest mobione on a IPAD2 IOS 6.0.1 The app has 22 pages, all images and text only. The app size is 6meg so not big by any means. Everything apart from the lists work very quick and no other problems. I can send a link to the web app if you need it or send the project.
Thanks
Paul
November 16, 2012 at 7:53 am #332391
paulDMemberOk I’ve found out that if you check the ‘highlight when active’ checkbox the selection lists now work. Without that you cant select the list item hardly at all.
So its works now but it think there’s a bug with the list item widget.
I still need a way of resetting the app when the app is closed down to start from the beginning. Is there a way of doing that? Thanks for any advice
Paul
Attachments:
You must be logged in to view attached files.November 16, 2012 at 9:15 am #332397
support-michaelKeymaster>So its works now but it think there’s a bug with the list item widget.
Thanks for the feedback. Would you mind sharing link to your webapp for us to review? We are always interested in testing and understanding user created apps.>I still need a way of resetting the app when the app is closed down to start from the beginning. Is there a way of doing that?
Can you share more details about what you need to accomplish? For example does the app need to shutdown with a specific state. Your app’s documentReady() function is called when the app is launched see <project>_www/<project>_custom.js file for this function. Can you perform app state adjustments there?November 16, 2012 at 9:56 am #332399
paulDMember@support-wayne wrote:
>So its works now but it think there’s a bug with the list item widget.
Thanks for the feedback. Would you mind sharing link to your webapp for us to review? We are always interested in testing and understanding user created apps.>I still need a way of resetting the app when the app is closed down to start from the beginning. Is there a way of doing that?
Can you share more details about what you need to accomplish? For example does the app need to shutdown with a specific state. Your app’s documentReady() function is called when the app is launched see <project>_www/<project>_custom.js file for this function. Can you perform app state adjustments there?Thanks wayne for getting back to me.
More than happy to share a link to the web app, do you have a address I can send it, i don’t want to make it public at the moment.
I would like to have the application to shutdown in its start state, so when the app is used again its a new run. I will have a look at the documentReady() function although i am very new to HTML5 and Javascript. I’m a Flash user taking his first steps away from actionscript so its all wide eyes and tears at bedtime at the moment!
I got to say Mobione is very cool and I’m very excited about where I can go with this. In the past i’ve used a lot of the greensock tweening platform in Flash and there’s a uber cool JS version out now which would be fantastic to integrate here.
thanks
Paul
November 16, 2012 at 2:39 pm #332403
support-octavioMemberHi Paul,
Please send us your URL via support at genuitec dot com, use title mobione web app url from paulD
November 20, 2012 at 9:07 am #332492
paulDMemberHi guys
I’ve tried putting phoneui.gotoPage call in the in the documentReady() function and it only seems to work on the initial app start. I tested this by putting different page paths in this call and it opens the app at the set page. When the apps closed and re-opened it goes to the last page viewed so it seems it doesn’t read the documentReady() function after the initial start.
The other thing I have noticed is that I think the app is still running in the background when closed, as since installing my app the battery runs down on my IPAD a lot quicker.
Thanks for your help
Paul
November 20, 2012 at 1:02 pm #332504
support-michaelKeymasterHi Paul,
From your info there is some confusion over your app’s state. The documentReady() function is only called when the app is launched. On iOS when you start another app your running mobione app is not terminated. iOS suspends the current running app and launches the new app. Then when you launch your app again from the homescreen the suspended instance is resumed. To stop an app, open the taskbar (dbl-click home button to view all running apps) and delete it. Then launch it and the documentReady() function will be called.
You can add listeners for app life-cycle events as documented HERE. Below is a snippet for listening for the Resume event. This example was derived from the phonegap site which works fine on my iphone6.
/** * Called when document is loaded. */ phoneui.documentReadyHandler = function() { document.addEventListener("deviceready", onDeviceReady); } function onDeviceReady() { document.addEventListener("resume", onResume); } function onResume() { }November 20, 2012 at 4:16 pm #332520
paulDMemberSorry for the confusion wayne its my fault. Its been a bit of week! I’m not a developer so everything is new and i’ve had a bit of learning curve to say the least to get the app to this stage. But i’m pleased with the progress I’ve made, i got my first bit of jQuery coded and working today inside the app. Its not a million miles away from action-script 2 which ive used a lot of. It took me a while to figure out the $ meant jQuery ha ha!
So forgive me for my limited understanding of IOS development but what your saying is that IOS only suspends the app when deselected and not shuts it down. So i can use this snippet to listen for the app being resumed and call a function which ‘resets’ the app so to speak.
Thanks again for your time
Paul
-
AuthorPosts
