Adobe AIR - My Mobile Services Don't Work - ipad

I am really close to being done with my app. The layout is finally correct and scaling properly. The only problem I have now is with my services. When I click on the button that is supposed to load data from my database, nothing happens. I set the endpoints of the services to point to my database on my website. The app works in the simulator, but on my iPad, I get nothing. So I have a couple of questions. Does the .ipa file that you upload to an iPad contain all the folder structure for your services? Is there a descriptor setting that needs to be set to make sure that you have internet access on the device?
Any thoughts would be greatly appreciated. The desktop version works, and it works in the mobile simulator, but not on the iPad??? I don't even know where to start with the debugging so any thoughts at all are greatly appreciated.

See this answer about NSTransportSecurity
stackoverflow.com/questions/39849033/flash-cs6-as3-check-internet-connection-not-working-at-all/40101024#40101024

Related

Some images now showing in iOS despite showing in Android

I have a React Native app that pulls image urls from Amazon. I store the urls in a database, and reference them later as the source of my images.
After building up a good amount of entries in the database from several users, and releasing my app on Android, I decided to set my focus on iPhone. I'm now noticing that some images are not showing. So I go in and make sure that the urls are correct, and they are. Plus they're still working on the Android app just fine.
I then open Safari on my mac and plug the url into my browser. Same thing, it doesn't show up (Must be an Apple thing). An image such as this one...
https://images-na.ssl-images-amazon.com/images/I/41OAg8ggg8L._AC_SY400_FMwebp_.jpg
Will not show up... but an image such as this... with a similar url will...
https://images-na.ssl-images-amazon.com/images/I/51sEOLVrs5L._AC_SY400_ML2_.jpg
I'm essentially getting a view like this on my app...
I just know this has something to do with my lack of understanding on how images now work in iOS, I've found that much through Google. I just don't know what. Can someone please explain? Thanks in advance!

Strange behavior with hyperlink on iPad only

My first post/question. Hope I don't stomp on any rules!
I have a site (mainly html5) with the same 9 "navigation" links on every page. They work exactly as expected in Safari, FF, Chrome on my desktop Mac. They also work correctly on my iPhone 5. However, while they all work, as far as taking the viewer from one page to another, on my iPad (2?), all but one have to be tapped/clicked on twice before they work. The exception is the "Forecast" page which works exactly like it should (single tap/click). I have checked all the pages with BBEdit's syntax checker and its "Compare..." function. I have also used the nu HTML validation service. None of these systems can explain why only one link works correctly on the iPad.
If you have an iPad, you can see what is happening better than I can explain it. http://www.mid-southweather.com/
Thanks for any help or insight. I've found nothing from interweb searches.
Clearing the iPad's Safari cache did not help, but I discovered, however, that the iPhone and iPad are sharing bookmarks or history! I'll clear things on the iPhone and try again.
No change, even after turning OFF Safari on both the iPad and iPhone iCloud list.
I suspect it is either the older iPad hardware or the CSS menu building 'code'. I found the same problem in an older site where I used the same CSS for a multi-level menu. The same two-tap requirement occurs at the lower/final link, but, again, only with my iPad. Oh well, thanks for testing/reading!

View the file system of iPad/iPhone to verify saved files

I would like to be able to view the file system of my actual iPad/iPhone to verify that files are being written correctly. I can do this using the simulator by navigating to Users/me/Library/Application Support/iPhone Simulator/6.0/Applications/specific app/Documents. Here I can see all of the files and data I have written from within my app.
I would be really helpful if anyone knows of an app or some way of viewing the file system of my apps WITHOUT JAIL BREAKING
Thanks in advance
Take a look at iExplorer:
http://www.macroplant.com/iexplorer/
Also, look at this question:
https://apple.stackexchange.com/questions/54682/easiest-way-to-browse-iphone-filesystem
Strongly recommend iFunbox, take a look at LifeHacker review here. Easy to use and you can even access your iPhone over WiFi. No jailbroken required too.
You should try DiskAid: http://www.digidna.net/diskaid which is way better than iExplorer. You can connect to your iPhone or iPad via Wi-Fi and USB and browse your iOS file system, app sandboxes and it supports multiple device and simultaneous file transfers.
I am almost 100% sure this is not possible without a jailbreak (at least not on the device itself). If it works on the simulator, then it should be saving correctly on the actual device. If you need to verify it, just read the file from your app, and turn it into an NString, and NSLog it.
Then you will know if it is working.
Cheers.
EDIT
Of course, as others have mentioned, there is iExplorer, but you have to view the files on a Mac. And it won't show system files.

Anyone experience caching issues with web apps ran in full-screen mode iOS/Mobile Safari?

I'm having a very strange issue with my web app (which is ran in full-screen mode from the home screen) and Mobile Safari. Usually, as I develop, I edit the files with the changes that I want to make and then I re-launch the app from the homescreen. As per iOS design, the web app will refresh and reload the site.
However, in some odd but frequent situations, when I launch the application I get a cached older version of the app. If I navigate to the app through Mobile Safari (not from home screen) then everything looks great.
I've added meta no cache tags all over the space and even attempted to thwart the cache by adding ?query strings to .css files, etc, but for some odd reason when a cached version decides it wants to display - it will display, no matter what. Clearing cache and data from the settings menu and then relaunching will only sometimes fix the problem.
Anyone else run into this issue? If so, how did you fix it? Is it a known iOS bug? I'm thinking about adding some onLoad code to check if the application is running in full screen mode and then explicitly force a refresh.
Please help - this is extremely annoying and frustrating!
Rich
In my own testing I also found that applications run from the "Home Screen" on iOS won't properly refresh their CSS and JS files. This appears to be an ongoing problem. The only solution that worked for me was to:
Change the device date forward by 2 days or so..
Reload the app from the Home Screen..
Reset the date.
I also tried deleting and recreating the icon from the home screen and clearing the cache in Safari.
"Happily" you are not the only one seeing this problem.
https://discussions.apple.com/thread/3385843?start=90&tstart=0
Incase anyone asks. There were no manifest files involved in my testing.
iPad 2 with IOS 5.1.1.
Enable Debug console from "Settings>Safari>advance" and see if you've any errors there.
Most probably you may have an 'Invalid MIME type", Manifest Parsing or Resource Fetch Failure Error.
Fix them (this link might help in fixing those http://www.fuckyeahtml5.com/2011/06/debugging-html5s-offline-web-apps/).

iOS: Did Apple disable HTML5 offline capability for web apps saved to the home screen?

I've been doing lots of work in getting a few web apps to work offline on iOS using the HTML5 manifest. I've ran across the typical problems everyone else has and fixed them and everything seems to be working fine—except in the case where I save the web app to the desktop on my iPhone 4.
If I do this and then enable airplane mode, I get the following alert when trying to access the app via the home screen: "your-app-name could not be opened because its not connected to the internet." Accessing the app via Safari browser works fine while offline.
If anyone knows if this is an error on my part, or even the slim possibility of a work around, do tell.
Even downloading the new Financial Times web app (very well done with extensive localStorage support) results in an error when accessing it offline from the home screen.
Technical specs: Running iPhone 4 with iOS 4.3.3 (but also saw the issue in 4.3.2)
After reading the comments (especially Rowan's) I ran more tests and found the answer:
No, Apple did not disable HTML5 offline capability for web apps saved to the home screen, it works - for the most part. There is a bug that will make it not work. It doesn't seem to have anything to do with your manifest setup (unless perhaps it downloaded a bad manifest or incomplete manifest at one point.) We don't know how widespread it is but the fix is to clear your Mobile Safari Cache.
Here's the steps:
Close the web app (make sure its not sticking around in the background).
Cleared Mobile Safari cache: Settings > Safari > Clear Cache
Reopened the app (for caching).
Close the web app again (make sure its not sticking around in the background).
Enabled "Airplane Mode": Settings > Airplane Mode
Reopened the app.
It should now work offline. If it doesn't then its probably a separate manifest issue in your app. Looks like a weird bug with the browser cache - or perhaps the cache was completely full? Who knows, but that's the answer. Thanks guys.
iOS seems to be very sensitive to load issues when offline.
I was getting your "could not be opened" error when offline on a page I was working on. The problem turned out to be that the page created an iframe pointing to a site that didn't have an AppCache. Removing those iframes fixed the issue.
In my case, I handled it using window.navigator.standalone which tells you whether you're running in an iOS homescreen app. The code looked like this:
if (!navigator.standalone) insertFrames();
add this to your html:
https://web.archive.org/web/20170201180939/https://jonathanstark.com/blog/debugging-html-5-offline-application-cache?filename=2009/09/27/debugging-html-5-offline-application-cache/
I found it massively useful - even though I've created my manifest file and compared it to other people's manifests this JavaScript debugging script gave me the clue I would have never found otherwise. I apparently had syntax error in my manifest ... long story short I had to remove everything and add the paths to each file/image one by one. The end result was the same however it worked... how weird!!! does whitespace / comments affect the syntax of the file?

Resources