How can I add database for desktop application using flutter? - database

I am a flutter developer and now I want to develop an application for desktop. For that, I need to store data. I was using firebase for Android application and now I am shifting to desktop application but firebase doesn't support desktop application.
So, I need a free available backend database service. Is there available any except firebase.
If firebase supports desktop application then how can I add it to my project.

Related

React-Native authentication and Cloud Firestore

I want to implement authentication to Cloud Firestore but dont know if I need to add Two Apps in the project settings of the project in Firebase or I just need one?
The main thing where I am totally confused is that the Cloud-Firestore docs say that I need to create a Web app in the Firebase Project, and on the other side I need an Android app in the same Firebase project for the authentication. So, how are those two communicating with each other, how my users are registered to one of the apps and given access to the other app?
You don't need to create two Firbase apps, you only need to create one Firbase app and link it to your Android App.
In the Firebase Console you have to + Add project.
In the project that you have create, under Get started by adding Firebase to your app you have to click on Android icon. This will create a Firebase Application for android.
There you will have to register the details of your Android Application. e.g. Android package name etc.
Then it will prompt you to download the JSON configuration file that you will have to include in your Android App.
After that you will have successfully linked your Firebase Project Application to your Android App
For more detailed explanation I advice you to follow the Add Firebase to your Android project documentation.

Offline sync in xamarin forms without azure mobile service client

I am new to Xamarin development.
I am building a Xamarin application with RESTful API and using SQL server for online storage and SQLite for the Local storage.
I need to add offline sync feature to my app.
Is there any way to sync remote server and local DB, without using azure mobile service client?
yes you can make use of Sync Adapter this would sync your data in background but this is Platform specific and hence you had to implement it in Native Class Also If you want a Periodic Sync you can also use JobSchedular in Android
You Can Read More Here
Android SyncAdapter Documentation

Synchronise a mobile light database with ASP.NET Web API 2

I am building a mobile application targeting iOS, Android and WP with Ionic/Cordova. And using ASP.NET Web API 2 REST APIs backend.
I have the requirement that the mobile application can collect data and synchronise it with the APIs and if the mobile is offline, the sync will happen when it is online. The data size is small and any light DB would do including the localStorage one. The required sync is only needed one way, mobile to APIs. Also, once a record is synchronised, it can be deleted from the mobile.
I was looking at Couchbase mobile, but I found it is a Mobile DB to DB sort of a solution.
Can you recommend a mobile DB to REST/Web API sync solution?
With the native Couchbase Mobile solution for Android/iOS coupled with the REST APIs you are able to get data from Mobile device to your backend. Then delete any documents off your device once you get back a 200 status.
For Windows Phone, you can explore using PouchDB or going with the javascript browser based solution across all platforms since WP is not currently supported.
For the replication or sync to occur when your device is online again, you would require your backend to use Couchbase Server and implement the replication class methods in your native mobile app to have the push feature. Or you can use the REST API with logic detection when you are online again to POST to your backend.

moble app deploy in Ccomonsere

hi i develope a mobile app with phonegap frame work and html5,erything works fine but for future exist i need to connect my app to server db to make app multi-user. rit now i just create a local storage by using js which store all the user data in perticular local storage? what are the options i have to make the db server connected do web services work with this if so what kind of service i need to use. itried for few web services but all they are related to web applications. plzz help me thanku
Your phonegap App is like a Web App. The advantage that your phonegap app has over Web App, is that you can access native features (camera, Contact, etc..) of the phone with phonegap, which is not possible with a pure webapp. So all the backend services that you can use with web app can be used by your phonegap app.
Now which web servcies you want to uses depends upon your preference.
You can use web services or RESTful service for getting data from the backend.

which mobile gis application developing is better for me

i want to develop a mobile app with this features:
1-work offline on mobile and don't need to internet(disconnect mode)
2-can import layers to it in public extensions(shape file,personal geodatabase,kml)
3-can edit layers
3-have some forms and fields that fill by mobile user and save in database
i think android is better platform for developing my app,so i need a gis service that can extend in android
i know arcgis and developed web apps and desktop apps with that before,but in mobile app developping, i can't use it,because i had to use arcgisonline service to host my layers and i don't want share my map and want to host data locally and offline
let me know what i need and what platform i choose and which is better
thanks in advance......
The ArcGIS Android API is a good choice. Esri have a sample offline app available for download. We have used Mobile Flex, since we have clients who want both iOS and Android solutions. It uses ArcGIS Online but could only use local files if needed. See a demo here:
http://www.webmapsolutions.com/category/arcgis-online
--Matt

Resources