I develop an application with Cordova for Android and IOS.
However, when publishing an update, sometimes the application has bugs due to some data being cached. The problem is solved by emptying the cache and the data of the android application.
So I am trying to find out if it is possible to force the phone to dump this data during a new update (for major update).
Whether it's a feature from Google Play, or a feature in the application code?
Thank you in advance.
Cordially.
Related
I'm writing a simple android app detection using Ionic (fairly new too as well with mobile apps dev using Ionic). Using this plugin App Availaibility I was able to get a list of installed apps, however is there a way or plugin or is it possible to know what was the recent app that was used in the foreground? Like if a com.android.appname was run, it may be able to detect it? Thanks.
No there is not, I'd assume that there won't be a plugin for this either. In order for the device to know what app has ran in the past, it must hold this data somewhere. I doubt google or apple does anything like this.
or
you can always try and build a plugin yourself and see if its possible.
I am currently developing application using Cordova + Ionic for Android.
I use LocalStorage and PouchDB for data storing.
Recently I have discovered that Android 6.0+ has a feature to automatically restore apps once installed (even debug applications installed not from play store).
Every time I install app LocalStorage and PouchDB data gets restored which is not kind of behaviour I need.
I have read that developers have full control of that backup system, may tweak what gets backed up or if they want completely opt out of the system.
Question is how do I disable it in Cordova, is there some kind configuration switch, I did not find any.
I am trying to develop an app for GPS tracking in cordova for android users which also includes android 2.3, they might have very less internal memory. So I want to reduce my app size as much as possible.
The only external resource I am using is google maps API. Yet, my app data is over 3 Mb. I searched in google but, I couldn't find. Can anyone give some guidance to reduce my app data. I would like to know where can I find the detail description of what does this app data contains of.
The problem is, whatever Cordova receives is cached into app_webview/Cache and dunno why, but there isn't something which controls this well.
This plugin should help you clear the data: https://github.com/Sharinglabs/cordova-plugin-cache. It is compatible with Cordova 3.3.1 and above. It works with my Cordova 4.2.0 app.
I want to write a small Android App and also a small Google Chrome App, which should keep their data synchronized. I decided to use Google Drive to synchronize the data.
Like Google Keep seems to do it :
Google Keep saves all your notes to your Google Drive, so everything is backed up and available, should anything happen to the original device or computer on which the notes were made.
Currently I am only working on the Android App. After searching for a way to create a hidden folder to store the data I found the Application Folder.
While this seems to be perfect for my Android App my question is: can I also access this app folder from a google chrome app?
If not is there a good way to synchronize data between an Android App and a Chrome App using Google Drive?
Thanks for your help
"question is: can I also access this app folder from a google chrome app?"
yes
"If not is there a good way to synchronize data between an Android App and a Chrome App using Google Drive?"
There are numerous sync strategies you can employ, eg ...
Full refresh
Poll changes feed
Set up a push notification
Which is right for you depends on your specific preferences
Chrome Apps for Mobile (using the cca tool) have an implementation of chrome.syncFileSystem that will use Drive storage to sync data between a chrome desktop and hybrid android app automatically for you!
The downside is that chrome.syncFileSystem does not currently use Drive Application Data folder (it wasn't available when we implemented the API).
The upside is, if you only care about syncing data, and not necessarily how it is synced, and you already want to implement a chrome app anyway, using the cca tool should really be an awesome solution for you.
I know my question eventually won't match the title I opted for the question, but I honestly didn't know how to put it as I'm new to the Android and PhoneGap environments. If this is not a programming related question please accept my apologies.
We have got a .NET application that sends TASKS to our mobile employees' netbooks via webservice. The mobile users have got a local database that gets updated with new TASKS once they login. When the TASKS are completed, the local database gets updated. If there is a stable internet connection the update is then sent to the remote database.
Now we are planning to do both Android and iPhone version of the application. I understand this is possible using PhoneGap and HTML-CSS-JavaScript, but don't know how to go about it.
If anyone has experience of implementing these sort of applications, please guide me to some links/articles. I did some search on Google but didn't get a precise answer.
Thank You.
The getting started guides are all here. Each platform requires some amount of setup because of platform-specific SDK's and so forth you must download, so I would suggest starting with iOS if you have an iPhone or Android if you have an Android phone and then once you're up and running making the switch to developing for both simultaneously.
As for the question about a SQLite database, PhoneGap should be able to do what you describe. The documents for local storage, once you get to that point, are here.