I have a mobile app that's developed in mgwt and gwt-phonegap 1.8
It uses GWT-RPC, It works really well in iOS5 and all versions of Android.
In iOS6 the application works well only the first time.
Then if I start it again it appears that has cached the state from the previous session. (screens, values)
I have no mechanism to do that, and what's more the screens are dynamically created.
In addition, I have not used the mgwt linker that enables the application to run offline.
Anyone has an idea, what's causing this or how to deal with this problem?
Thanks.
It seems that the iOS6 webcontrol is caching the POST requests:
Is Safari on iOS 6 caching $.ajax results?
Related
We are looking to create an app for the educational industry. First app and we thought we could maybe start with Phonegap to speed things up, then transition to an Objective-C iPad app in the future.
Does anyone know what that transition would look like? We are hoping that it could be a v1.x to v2.0 update on the same app on iOS without having to install a new app. We are not concerned about Android users (sorry), the edu field is all Apple at the moment.
Thanks in advance
BITs
The transition would be as follows:
You shall learn Objective-C and the Cocoa Touch API in order to make a native iOS app.
You will then need to rewrite all of the HTML/CSS/JavSscript source code, to produce an equivalent application, in Objective-C.
(2.5 it might be tricky if your app talks to a webservice using AJAX etc. -- native networking is not at all as trivial as from the web browser from JS.)
An update in the AppStore shall be perfectly fine afterwards -- PhoneGap just uses a native 'skeleton' app to embed a web browser view, so no significant change will be required.
I updated the iPhone to iOS5 but now the geolocation doesn't work in
my Phonegap application.
I also have a webapp with the same code and geolocation works here.
Did you have the same problem?
Any advice?
Thanks!
Mark
i have had the same problem, although i updated my phone ios, xcode sdk and phonegap to 1.1. now for some 'random' reason, on my code the getCurrentLocation gets stuck triggering in loop. i'm fairly sure this has to do with the new phonegap framework, because even on the 4.3 emulator it still behaves the same, which it didnt before with phonegap 1.0.
my solution was to use the watchPosition and manually clear it after the first iteration, which sounds even better since phonegap 1.0 had some issues with getting your geolocation on the first run.
I started a GWT project targeted for iPhone (and later for other mobile platforms). Now there's a problem:
* I can use Safari on iOS to test it, but I have to compile my app which takes a while even after performance optimizations mentioned for example how-do-i-speed-up-the-gwt-compiler;
* I can NOT use Safari in gwt-debug mode to make quick tests without compilation Java to JS because there's no GWT plugin for Safari on iOS.
So: is there a workaround for fast test of GWT app on iPhone?
Same thing here. I have been developing a GWT app using PhoneGap to bring it to iOs and Android. I ended up just using Firefox for development, every once in a while letting the app run in the iOS Simulator (coming with XCode). But since the app is using geolocation via PhoneGap, there was no way around installing it on the phone every once in a while to make sure it behaves.
I found some mobile dev emulators, one that is coming to my mind is called Ripple. There are others out there, but non of them worked for me.
I have an app that I hired a company to build using Phonegap. The company is no longer able to support me with launching the app onto iTunes.
I have loaded the app and can compile it in Xcode. However the camera function is not working. I have tested the app before from a file they sent me and the camera function worked.
Is there special settings that you have to set in xcode 4 besides what is typical in order to use the camera?
You may be compiling for a different SDK. Make sure you are using the same one as before.
It shouldn't matter about the SDK you are working with.. the whole point of phonegap is to expose the native API's to javascript. So it's not the SDK, its the javascript. I am actually working on this now.. I will get back to you with my findings.
Can I successfully do iPhone/iPad web development (not native apps) on Windows, and without having an iPhone/iPad device?
I.e. work like PSD-to-iPhone-optimized XHTML/CSS layout.
I’m interested to learn about and make iPhone/iPad optimized websites. Any tips? How different will it be from desktop? What’s different other than the smaller screen?
From experience I will say the only true way to test for the iPad is to test on an iPad. I have been developing a site in html5 specifically for an iPad and we initially used the iPhone to test. The drag function we had implemented with jQuery had worked almost perfectly on the iPhone but after the client had tested on the iPad they came back to us and said the function did not work period and they were correct.
I guess this could change depending on what type of development you are doing. From experience I would say either A. Make some trips to the apple store B. Make friends with iPad owner C. Buy and iPad
yes for an ipohne emulator... try MobiOne.
It's a good application to test the pages in iphone like environment.
http://www.genuitec.com/mobile/
I don’t think you can really do iPhone/iPad development successfully without an iPhone/iPad at all, whether on Windows, Mac or Commodore 64.
If you’re serious about iPhone/iPad development, how could you not try your software out yourself on the devices it’s going to run on? Your clients are going to want code that works on the iPhone/iPad. You need an iPhone/iPad to check that it works.
if your developing a web app then i think you can use this: http://ipadpeek.com/
The answer is: Yes you can absolutely do iPhone and iPad website development on a Windows PC.
However, you really should/must test the result on an actual iPhone/iPod Touch/iPad. Especially if you are integrating in any way with special device features like the dialing feature of the phone. (Yes you can have phone numbers in a webpage trigger dialing when you tap on them.)
However, you can do the bulk of the development on Windows, testing the WebApp in Safari or Chrome, which are the most fully compliant HTML5 WebKit based browsers out there.
Also highly recommend using an HTML5 touch framework like jQuery Mobile or Sencha Touch. This will go a long way to ensuring that your WebApp is optimized for the screen size and touch gestures of the mobile devices.
Remember that you can't deploy a pure WebApp to the app store, only download it from a website. You'll need a native wrapper like PhoneGap for that. And to compile a PhoneGap wrapped WebApp you'll need XCode on a Mac.
But there's a lot of power in adding your WebApp to the home screen on iOS. No native code involved and you get a full screen webapp with a home screen icon, loading image and no browser toolbars. Highly recommended.