What is Intel xdk local storage size limit - intel-xdk

I need to develop a mobile application that communicating with rest service. I think that using of intel xdk cross platform may be appopriate for that. I got some informations via internet investigation about the platform. Then i learnt that local db usage is possible by IndexedDb. But im confused with size limitation of persistent db file. So application may need to db file to use during offline bigger than 10mb. Is it a problem. By the way, offline db contains products with pictures. Im curious about that Is it possible to persist a field with only filepath referenced to mobile storage instead of byte of file? For example is it possible to save picture file which came from service to somewhere belonged to mobile's storage? Finally, can i deploy my program with initial db? Thx, brgds

There are many options for local storage for your app. It is important to understand that an XDK app is a Cordova app. The name XDK refers to the tool, not the runtime environment. Your XDK tool creates Cordova apps.
Try searching for something like "phonegap cordova local storage solutions" for a list of the options available to you when you create a Cordova app.
BTW -- PhoneGap apps are also Cordova apps. :)

Related

Changing published mobile application developing language from ionic to flutter

I have a mobile application developed using Ionic. Now I want to redevelop it in flutter and publish a new update, would that be possible? will google play and AppStore allow that?
There is no constraint on development language. But,
You need to use same certificates/keys for iOS App
You need to use same key-store/keys for Android App
If you are using local database or file storage, then you should follow the same path in your newly created app as well. If you are using any third-party library to manage the db or file paths, then it may be in different location altogether. (This one actually happened to me. When I migrated my app from a cross-platform framework to Native the database path got changed in release version)

Difference between Ionic Storage and Native Storage?

I'm Actually using Ionic Storage. and I heard About The Ionic Native Storage
I Don't Know the Exact Difference Between Them. Which One Is Preferred to use?
They have basically the same purpose and both work with key/value to store items, but i think Ionic Storage is better and i'll tell why.
The Native Storage need and will only work with the plugin instaled, so if there's no plugin or if it's a webapp the user can't use the storage. It's intended to be used because iOS may remove stored data when running out of memory.
The Ionic Storage works in a diferent way, you can save your values in the IndexedDB, wich is a type of storage for the browser, but if you install te SQLite plugin it'll automatically priorize to save your data in SQLite so there's no loss when iOS is out of memory.
So when using with SQLite, if in a browser running as a webapp the user can still save data, because since there's no plugin in the web it'll use the IndexedDB, and if there's no IndexedDB then it'll use localStorage.
And you don't need to learn SQLite to save with the plugin, the Ionic Storage will do all the work for you, you just need to use the key/value as the same way you would use for the Native Script or the localStorage.
Which one is preferred? It's all up to you, but i see more advantages in Ionic Storage.
Check out the Ionic Storage Docs.
Hope this helps.
the principal difference is this:
Native Storage is a Cordova Plugin, so only work in devices. Its a little faster than Ionic Storage on devices, because uses the native functions of the device to store Key/Value data.
Ionic Storage is a not a Cordova Plugin, is a javascript library, and can be used both in Devices and Navigators.
There are no big difference between them, i prefeer Ionic Storage because i can realize faster tests on browser during development.
Nowadays I work with ionic 4 and I have experienced unpleasant latency of the #ionic/storage module, but after I switched to the native storage I got a better performance. and by the way you still can use it while testing with the browser using the ionic cordova run browser command not the ionic serve command.
So what I am trying to say that native plugins always win in the matter of performance.
Best Wishes

Create Samsung Smart TV Offline Application

I've been asked to create a Samsung Smart TV offline App but I really don't know what it means to Offline Application.
The client said me
The app has no GUI. It's not like a regular app. The TV will be
pointed to a URL. That URL has specific Samsung TV instructions to
download the files and when the TV has it, it will open the zip and
display the content as required.
I've setup the development environment and have studied about Samsung AppsFramework and learned how to start an application but really confusing about the offline Application.
Could anybody please make me understand that what the client does exactly want?
Thanks
What the client wants in my opinion is an app that can work on the smart TV without having to connect to the internet.
It would obviously need to connect to obtain the download files, but once the app is installed it will have offline functionality and not need to connect to the internet to run.
Have a look at http://electron.atom.io/ to build cross platform applications like this.
It is really difficult to say what they mean by offline as we dont have a brief. But offline generally refers to an app that has everything in the initial download. Example, a dictionary app will have all of the words and definitions in the download so they are always available even if the device is not connected.
Hope this helps
Samsung API provides interface for reading and writing files so you can download and store something for later offline use.
Alternatively you can use localStorage API.
The app has no GUI
This part is strange. Launched app occupy whole screen. You need some use-case description from client. Find out what problem is your client want to solve with this app.

How to use SFSmartStore for offline data storage in native iOS application?

I am working on salesforce application. In my application, i need to store data locally for offline supporting. For this, i have seen some forums to achieve offline data storing and retrieving using sales fore smart store setup. Can anybody give some guidance how to use smart store for offline supporting.
Thanks in advance.
To use smart store you need Salesforce Mobile SDk configured (for Android OR iOS)
after that please install the account editor example and study the code in here Account Editor Example secondly,
Using StoreCache For Offline Caching tutorial explains how smartstore works.

Is PhoneGap on iPhone pointed to local proxy possible and allowed?

We are looking on building a project that would run on Android, iPhone and other platforms with Phonegap. The app would be fairly simply, making use of the camera and basic UI features. The first versions would simply point to a web service and load information from there.
Over time, however, we want to improve the speed by:
1.) Downloading content via a separate thread when the app is running and storing the results in a local database,
2.) Hosting a mini webserver in the app*, and
3.) Pointing the PhoneGap UI to the app's mini webserver instead of the service's external webserver.
Two questions:
1.) Is it technically possible to host a mini webserver in iPhone that the app will access?
2.) Would this functionality be rejected by Apple?
Thanks in advance.
*I realize this step probably isn't really necessary. But, if it enables to truly build a "write-once-run-anywhere" UI, it might make sense still.
You're much more likely to want to have the HTML for presentation generated on your actual server, downloaded and stored by your separate thread as an .html file on the iPhone filesystem and served through local URLs using PhoneGap. Essentially, an advanced cache.
This way no web-server is necessary and you only need to write the UI generation code once on the server.