Making a sencha touch app work offline? - sencha-touch

I've tried using the download from the sencha website
http://www.sencha.com/learn/Tutorial:Taking_Sencha_Touch_Apps_Offline
when uploaded to my server and viewed on my ipad offline the app just says you need to be connected to the internet or words to that effect. Any ideas how to fix this or does anybody have a working offline example?

Not strictly related to the point, but you could take a look at PhoneGap (http://www.phonegap.com/) if you're looking for a more complete offline solution, at the price of a higher complexity and app store issues.
I found it quite well done and it offers a greater flexibility wrt offline storage and native access.

Related

Which service should I choose to convert a website to mobile app?

I am a newbie at programming. I know one or two things about c++ and I also have some knowledge with html and php but app developing is too hard for me at this stage. I want to create my mobile app and I heard about services which convert websites into mobile apps. Which service is the best one? Also, I heard that free services are really bad. Is that true?
Jamblam. Link: https://www.jamblamapps.eu They have great quality and performance. Also their prices are a huge plus.
Note: They make only Android apps.
2nd Note: Yes, free services aren't a good choice (crashes/not working).
you can use Apache Cordova and it is free, to convert your website to a mobile app for both iOs and Android applications. Check my explanation and steps on my GitHub profile, follow this link https://github.com/tshele/Convert-any-website-to-IOS-and-Android-with-Cordova
Jamblam Apps (now changed its name to Shibe Apps but the link is the same) is the best provider. BTW I answered such question before. -1 from me. I recommend looking for already answered questions instead of creating new ones.

Why the updation of mobile applications require installation of whole apps again?

I am new to mobile application development(basically android). I was just wondering that, whenever, we try to update an application, every time, the whole app has to get installed, which is frustrating. Just imagine, reinstalling whole apps for "minor bug fixes". Couldn't we just update that particular feature of the app. That would save a lot of time and money, especially for people in remote areas, where the internet speed is very low.
I searched for a proper answer but couldn't find any.
Thanks, in advance!!

How to detect a docked device in cocoa

I've been searching all over the web and have found solutions to mounted device detection from within a Cocoa App using the NSWorkspace notification system. However this notification doesn't seem to be triggered when an Apple device is docked.
I specifically want my OSX App to detect docked iPads/iPhones, be able asses whether the iOS version of my App is installed and then synchronise files. I realise that the easiest way to do this is using iCloud, but I do not as yet have a developer membership with Apple and would like the option to be able to synchronise files without the internet.
An iTunes like system would be ideal. Any ideas.
Thanks in advance.
Apple don't provide any official APIs for doing what you ask.
Unofficially, you can try the stuff here: https://bitbucket.org/tristero/ipodaccessframework
You can definitely use it to determine whether a particular app is installed (by looking for a match for its bundle-id) and you can read/write files to/fro a particular apps document directory.
Disclaimer: this one is mine. There are definitely other libraries around that achieve similar results.

iOS App Settings/Preferences in Worklight

I am working on a Hybrid Application, targeting (for the moment) iOS. Does Worklight have a utility to handle application settings/preferences for iOS? I know how to write the native code to do this, but do not yet know how to gain access to the application settings from the JavaScript. Can anyone point me in the right direction or provide a working example?
In application-descriptor.xml, there is a worklightSettings flag you can set, however the settings page it creates is not user facing. That is, it is meant only for development time, or internal usage, and not production. It allows control of the server address that athe client connects to and change the web resources it will fetch.
So the answer is, no.
The mentioned settings page has set items in it that cannot be altered much (settings.bundle which does not allow much room for play. Maybe you could change it a bit, but doing so would void giving support to you if problems arise). I would recommend against doing so.
So this leaves you the option of creating this on your own. Maybe there is an existing Cordova plug-in that does something similar. Review these training modules of how to incorporate Cordova plug-ins to your application. Cordova bridges between JavaScript to native code, so it could be what you're looking for.

Can we package our existing HTML5 JS App for Windows 8

I have read some posts on S/O and also around the web. We are producing a HTML5 JS based web app that runs on the web. We are packaging it up for Google apps, and also for phonegap.
Can we package this app for windows 8? Of course, I appreciate it won't use the windows 8 features. But, will the app run none the less, as it stands. So that we can place it in the store and build out windows 8 features as we move forward.
I appreciate this is a slightly non-concise question, but I guess the real point is what is our quickest route to take our existing HTML 5, CSS, JS App and deploy it in the store and get it working on this platform.
In general, the answer is yes. The transition is not seamless, but you will be able to use a ton, if not all, of the application artifacts in Win8. A good test is if you can run it in IE10, you can run the app as a Win8 app. Again, this is a very broad brush - things you need to worry about are things like all scripts files need to be local (no CDN), changes to web and security contexts, and the fact that Win8 is a horizontal paradigm whereas most web apps are vertical. But in general, you should be able to make the move. Usual caveat - your mileage will vary.
Yes, although not recommended, you can package your existing app for Win8. You'll need to add a few bits of code though. The minimum would be to embed your app's start/init code within WinJS's first promise callback, like so:
args.setPromise(WinJS.UI.processAll().then(function () {
// your init code
}
You'll also need to create a couple of icons for the start screen and an image for your app's launch screen.
It is possible that you'll run into a few issues, like some security related restrictions, where you'll have to modify your code to use some native WinJS functions. This all depends on you app's implementation.
You can also check Microsoft's guidelines for migrating a web app to win8, here: http://msdn.microsoft.com/en-us/library/windows/apps/hh465143