Making an iPad App that works without internet - ipad

I am intending to make an app that works without the Internet. My App is just a presentation for my company and it would just be a page with links, link to PDFs and couple of videos.
It also has a questionnaire which would require results to be shown in a graph.
Is it possible?
Can I do it all without accessing internet? Could I use third party apps like phone gap, Corona, Rho Field, Widget Field, Appcelerator or others to speed up the process?
Any idea would be highly appreciated.
Thanks.

Using Titanium just install the plaftorm http://www.appcelerator.com/
Download the KitchenSink project https://github.com/appcelerator/KitchenSink
and copy all the stuff you need to your own project.
Using webviews you could show local PDF's

Related

Advice on making first screen load super fast in React Native app

This is more of an advice question rather than a troubleshooting question. Speed is the focus here. I'm currently working in iOS but obviously planning to build for android.
I have built a React Native app where I am using the react-native-nfc-manager library. The function of the app is simple: read what is on an NFC tag and write to it (the NFC tag) in one tap. There are 3 screens:
The first screen (upon app open) is the NFC scanning screen and it is very simple- just a few components to activate the NFC scanner
NFC tag history screen
Account/settings screen
Screens 2&3 require API calls to some external (AWS) resources. No external API calls are needed for the first screen to be loaded or for the NFC scanner to be used. I need to ensure that this first screen loads as fast as possible on app cold/warm/hot start. My goal is to use RN for as much of this app as possible. As I see it, there are a few options:
use RN to write screens 1,2,3
use Swift/Obj-C to write screen 1, and RN to write 2&3
go completely native.
I really want to be able to reuse my RN code for screens 2&3 at the very least - it doesn't matter how long it takes for those screens to load. I almost wonder if there is way to bundle screens 2&3 separately. I've done some searching/reading and can't seem to find exactly the information I'm looking for so I welcome links/reading materials that may help as well. Please try to compare any suggestions made to the performance of a fully native application, ie. "Option 1 will be just as fast as an application written entirely in Swift." Thank you.

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!

How to create a HTML link to a build.phonegap app?

I have run into several problems with iOS development through phonegap recently, and unusually people around here have been unable to discuss these issues and even together we have (for the first time I have ever seen) not had a single comment or answer for these topics...
See https://stackoverflow.com/questions/14707936/make-a-page-that-redirects-back-to-ios-phonegap-app and iOS broswer data -> Cache & Cookie for Phonegap App / Session?...
However, I have found "solutions" to get around these, but its by no means answers to the issues in question which are still outstanding... just simply doing it a completely different way.
However, despite loosing web-view in phonegap, in an attempt to get around https://stackoverflow.com/questions/14707936/make-a-page-that-redirects-back-to-ios-phonegap-app I now have some issue that are outstanding...
I need to be able to navigate back to my App from the web-system !!!
However, I have no idea how. I have read info on creating URL Schema, but I am not sure if this is even possible through build.phonegap at all... and it seems faily complicated. Does anybody know of a way for iOS safari to do one of two things
Either
Open the app that is running in the background
or
close the current browser tab and navigate back to the app in the background.
The closing tab idea would be good, but not essential
Look forward to everyone thoughts and opinions on this one...
Henry
You can create an url scheme for any application you make yourself.
See tutorial here
It's not as terribly complicated as one would think, and the required objective-c code is minimal.
Once you have done this, you can use your own url scheme to launch your phonegap application from safari with a hyperlink.
This would not close the tab (you could do this with javascript if you wanted to)
but does put safari in the background, and opens your phonegap app.
(whether it is already running in the background or not)
It is even possible to pass data to the app using your url scheme.
It is not currently possible using PhoneGap Build in 2.2 and previous. Potentially a feature top be released in newer versions of Cordova/Phonegap

PhoneGap in regards to App Store approval

I read that PhoneGap is approved by Apple as a framework for building native apps, but I'm not clear on how this does not constitute a "website wrapped as an app," something that Apple specifically doesn't like, as per their App Store guidelines. I'm assuming it is because the JS is contained in the application, rather than running on a remote server?
Any clarification on this issue would be most appreciated.
but I'm not clear on how this does not constitute a "website wrapped
as an app," something that Apple specifically doesn't like, as per
their App Store guidelines.
By this Apple means Apps that simply show a UIWebView that loads a remote website, so it basically just behaves like Mobile Safari, just without the controls. Also they wan't Apps to show at least a UI when the device is not connected to the internet, like in the Facebook App where you can still read already downloaded status updates, view photos etc. That's what a "I just wrap a remote website inside a UIWebView"-App can't do.
PhoneGap Apps have all the resources they need (HTML, CSS, JavaScript) on the device residing in the App's bundle, so using such an App would not depend on network availability and could at least show a UI that tells you to connect to the Internet in order to use the App, or they could display already loaded content (like Facebook, Twitter and so on).
I think that the signature of the binary tells Apple what framework built the application, and since all the supporting files (js included) are included in the project and therefore in the binary, it is a standalone application. That being said, I still think that doing things Natively is the best way to go. I am extremely comfortable with javascript and started out thinking Phonegap was the way to go for me. I did a couple of projects with it and then decided to take the plunge and learn Objective-C. That worked out so much better for me. No dependency on a third party framework and I wish that I had started that way.
Sometimes the easy way out just hurts ya in the end IMO.

share data between iOS native app and browser app

I am a rookie iOS developer trying to figure out this. Pardon me if I am asking basic question.
I need to set an unique identifier in the device (iphone or ipad) that can be read by the app (can be browser app or native app). Is this feasible ?
Reason being: the device needs to be uniquely identified. The user might be able to use the installed app or through browser as well.
Thx.
You can create a HTML element containing any amount of content and hide it with CSS. Sometimes I use an 'input' element just for that and read it with javascript. I think you use data-uri also.

Resources