I am learning meteor and making simple chat app then this question hit my mind..
If I am making web app then that is fine because all the user will access from save server and database but what about mobile users..
Lets say I am making android app and I want to build it.. When I build the app will it give me Mongo database along with apk or I have to install it manually ?
Second i can think of its do everything in the same database and just make browser for the app..
But what I want to store per user data in their mobile.. that is no related to my database ?
In my chat app in the browser it is working in realtime but what If i build and make apk for android with different database ..
I just want to know what would be the best approach if I am making a messaging app ? I am confused on database .
Thank you
The database is always remote MongoDB on the server where your server code runs.
For example your server address is http://someserver.com. This is where you publically deploy your application.
While building the apk, you need to specify the --mobile-server attribute which tells your mobile application where to point for server code and database.
If you host your database on some MongoDB hosting providers like compose.io then you need to specify MONGO_URL environment variable while building.
To cut it short, MongoDB is neither on apk nor on client (they have something called minimongo on client which is definitely not your actual database) but it is on the server where you have hosted your application.
Good Luck!
Related
As per the Firebase documentation, the contents of google-services.json are considered public. These can be easily retrieved by decompiling the apk.
If so, is there a way to prevent apps from registering with my Firebase project?
I understand that the registration works on the basis of package name. While it's not possible to publish an app with a duplicate package name, for development it is very much possible.
I created a dummy app, and my dummy app successfully registered with my production project. So, looking for a way to prevent that from happening.
You should be connecting your app to Firebase Emulator for local development.
You can go to Firebase console -> Authentication tab -> Sign-in Method tab, and remove localhost from Authorized domain, that way your app will never connect to production DB.
I am using Angular 5 application and using electron FrameWork to convert it to
desktop application and its working fine.
How to persist about 10000 records of datasets in JSON form in desktop client side. So that whenever a user is in the offline mode he/she will be still able to use our application.
Even user in offline mode can use the app and must be able to use our application even after he is restarting the system and even data should be secured and not exposed to the user as like local storage.
Getting started with Azure services here and I'd like to be able to have a "lighter" datastore for smaller solutions. Can anyone explain how to enable/setup SQLite with an Azure service? Is that done from Visual Studio or do I have to enable it while deploying to Azure?
I have googled every conceivable combination of keywords I can think of and came up with nothing but a feeling it's "easily achievable" but no hints as to hos it's done.
What I have is actually a mobile back-end that is using SQLite but I have no clue how I did that! There where certainly no datastore-setup wizard when I created it but when I go to the "Quicklinks" to download staged projects for clint projects I see that the back-end is indeed configured to use SQLite. I have tried a couple of different approaches to try and reproduce it but so far I have failed.
As far as I know, the azure mobile app doesn't support enable the SQLite from the azure.
In the azure portal you could only enable the azure table storage and azure sql database as the mobile app's backend database.
You could see this image:
If you want to use SQLite in your mobile app's backend, you need enable it by yourself in the project.
You need firstly install the System.Data.SQLite package and replace the connection string as SQLite connection string. At last you need deploy your mobile backend to the azure with the SQLite file. More details about how to install the SQLite in your mobile beckend, you could refer to this article.
Notice:
1.SQLite EF provider doesn't support the EDM.DateTimeOffset type. But the azure mobile app quick start backend sample use the DateTimeOffset. So if you want to use the SQLite as your mobile app backend, you need write your own model.
The mobile app backend EntityData class:
2.After you published the application to the mobile app, you need also copy the SQLite.Interop.dll to your application root folder.
I am working on an application built using web technologies (html, css, js) that will run as a desktop app using electron. The app will connect with database and file storage services hosted on firebase. Users of the application will not need to sign in to the application in order to authenticate, but the application will be both reading and writing data on firebase's servers.
We don't want to allow anyone not using the application (or firebase's console) to be able to write to or modify the database or upload or delete files from storage.
There will also be a website which will only be able to read the firebase-stored content. If possible I would like to limit reading of the data to that site and the application, but if that's not possible then opening up the stored data and files to be read by anyone wouldn't be an issue.
What is the best way to configure authorization for this app and website?
Thanks!
Im looking for the best way to build an on/offline application with symfony2. I need some advice here:
Users can access the application from navigator on their computer or from tablet (like iPad)
When there is no connection the application must run in offline mode
Data should be stored locally until the detection of a connection
Local data must be syncronized with server data
the question is : what is the best approach to implement this behavior knowing that the application must be developed with symfony2 (normal behavior).The main problem is the offline mode. Should i use HTML5 local storage or SQLite?
and what is the best approach to syncronize data between the two modes (from server to local/or from local to server)