I have a question about meteorjs and cordova mobile app development: will mongodb work locally on my mobile app (built with meteorjs and cordova) even if I turn internet connection off ?
My app will require only locally stored data (but need more space than localstorage provides) and I'm not sure how Meteorjs-cordova apps works after compilation to mobile (android & iOS) - does it have its own MongoDB instance inside it?
And if yes, is it possible to run it in offline mode?
Scenario:
internet connection is needed only on 1st run to download data, next time You can load everything locally and don't need to be connected to the internet.
Any information will be appreciated.
Your mobile app won't have an exact MongoDB instance on it, but you can use minimongo to store data in-memory on the client-side. So if you pull data from your server MongoDB instance, it'll be stored in minimongo until your app is closed. The data isn't persistent so you'll need something like this package to save data between launches.
See this answer for more information
Related
I am new with flutter and would like to know if it is possible to develop an app with an internal database that is checking the connection to the internet and when there is this connection the app will upload this data to an external database, a server in case?
For example, the app should function even offline but when on the internet perform a data synchronization with a server!
yes, you can do it by yourself (with backend) or with firebase which is pretty much more straightforward for a mobile dev
Enabling Offline Capabilities
Access data offline
I am planning to make a mobile application for both iOS and Android. First, I would like to make the iOS version of the app. I am planning to use CoreData to save data locally when the mobile is not connected to the internet, then when the phone is connected to the internet, I would like to add the data (which is saved by the help of the CoreData) to the FireBase, then I would like to download all the data from the Firebase to the app to get the latest data.
Is there any other solution to be able to save data offline and synchronize it to other platforms (in this case to Android) when the app is connected to the internet?
Since you're already looking into Firebase, I'd suggest leveraging their Realtime Database tool, as it handles everything from automatically syncing data between client and server, and leverages offline databases in case your users go offline and they have SDKs for iOS and Android.
I want to develop a offline android app with mongodb as my database.
Following are the things i need to implement:-
1)Can i install mongo db on android device
If we can do point 1 following are the things I need additional to it
2)When the internet is available the data on the android device should go to the mongodb on my server.
So, I will have to instance of mongodb database one on the android device and one on the server.
When internet connection is not available all the data goes to android device mongodb.
When internet connection is available then the android device data will be synced to server mongodb database.Similarly any changes in server data base should reflect in android local database once we get internet connection.
Will mongodb support this kind of architecture.
You can not install mongodb in Android device, so, game over.
It isn't possible to install MongoDB locally on Android device, because MongoDB latest releases doesn't support android device's CPU architecture. But i read an article online i gave it a try and it finally worked i was able to use MongoDB on my android device, hope it'll work for you too just give it a try
Here is the link to the article: https://codipher.com/install-mongodb-on-android/
Is it possible for data in a Meteor app deployed to a mobile device to be saved locally so that it persists across sessions.
I would like my MEteor app to be used without Internet connection.
However, the local database keeps resetting everytime I start a new session. This is how it behaves in the browser I know but not something I want happening on an app. I assume every time the app is replaced in memory, the local data storage is reset.
I've tried using Session variables, tried saving it in collections and anonymous collections - they all get wiped every time I delete the app from my recent apps list.
For Meteor, is there a way to save data to a mobile persistently?
I would suggest to start here: https://blog.groupbuddies.com/posts/45-offline-web-apps-with-meteor
I have an app that currently runs on a wamp server on my computer because it uses sql databases. I want a way to see the application (including the sql databases data) on my tablet. It just needs to be a local connection. When I download the app at the moment, I see the app but it doesn't show the sql databases. How can I setup so that the tablet uses the computer as a server to view everything?
You may try native web servers for Android, like kWS