Ionic mobile app synchronization between users design - android

I'm developing mobile Ionic app. The app's purpose is this, for logging rides to work, who drived and who's passengers. It's simple until you want to synchronize if between many users. The app is almost finished, but I'm struggling with this. I don't know how to figure out conflicts between records.
I'm using Ionic mobile framework so the app is in angularjs and as database I'm using PouchDB and I want to synchronize it to remote CouchDB.
Can you give my some advice. Thanks

We just added a guide to conflict resolution to the PouchDB web site: http://pouchdb.com/guides/conflicts.html

Related

How to create single backend website, iOS app and android app using flutter?

I'm new to dart and flutter.
And I want to know how to create a website, iOS app and Android app with same backend/business logic using flutter.
Little guidance will be appreciable.
Thanks!
You can Create a Powerful Backend Using Firebase as a Backend service https://firebase.google.com/
As I'm Doing this for my Client it's very easy with Firebase.
In Firebase Settings Tab
Click on Add App
you Can connect all the Service and access Database from any platform you just need link Them in Firebase.
Firebase Provide Option to Add All Three Platforms
Connect Android App
Connect IOS App
Connect Web Version
When i Starting it was mystery for Me... :D
Hope This would help you.
Helpful resource for learning
https://www.youtube.com/channel/UC2d0BYlqQCdF9lJfydl_02Q
https://www.youtube.com/channel/UCsBjURrPoezykLs9EqgamOA
As a learning path to building cross-platform apps, I would start with the Flutter codelabs, in this order:
Write your first Flutter app, part 1
Write Your First Flutter App, part 2
Write your first Flutter app on the web
Then I would look at Firebase for the backend: Add Firebase to your Flutter app and Firebase for Flutter.
For a nice introductory code example of a multi-platform app (Android, iOS, web, but without backend added) see the
Provider Shopper sample.
Lastly, I find the Flutter Widget of the Week series very useful for learning about the purpose and capabilities of each widget.
You have to take care of few things:
Your UI must be responsive in nature, for that use MediaQuery
Render your UI based on the Platform.
Always check the packages you are using must support flutter web too, because there are a lot of plugins that don't supports flutter web yet.

How do I use firebase firestore for my desktop app?

I'm using the firebase-ui-android authentication flow for my mobile app.
I would like to do the same for my desktop app, but it doesn't seem like there is an equivalent framework; the closest seems to be firebase-ui-web.
Now I'm playing with the idea of (ab?)using firebase-ui-web to run locally on the client machine for authentication.
However, since firebase-ui-web seems to be aimed at the server I'm a bit wary running it on the client side.
The desktop app is fairly simple, it pretty much only needs to read some firestore data.
What are my options here?
The only ways to connect with Firebase are by an Android, an iOS and a web app.
There is no support for desktop apps.
But, you can create a native sync service to link your desktop app with Firebase users throught a web service.
It is feasible to have a desktop app to connect to Firebase. However you should create a hybrid desktop app using electron or other platforms that is by nature use web and javascript. Here is an example of using electron to manage firebase: https://www.electronjs.org/apps/firebase-admin
You can use Google Sign-In for TVs and Devices for that case.
This is not perfect, because you need to use additional access code, but it can work with desktop applications as well

Load hybrid iOS and Android mobile app from server

I am using Ionic and Cordova to build a mobile app which will go on the iOS and Android stores. I have done this many times, and I really hate the process of having to update the app (specifically with Apple).
Would it be safe to dynamically load all of my templates and controllers from my server when the app loads, potentially caching them or having a server call to check if there is a new version? Basically, I would have all images and styles saved locally to the phone, but load the templates and controller code on app load.
And, if it was ok to do programmatically, are there any rules against this in Apple or Android's terms of use?
This is possible and there are tools like Cordova Hot Code Push to help you accomplish it. As long as you don't use this to break other app store review rules or significantly change the purpose of your app it's fine with Apple.

How does a web application work as mobile application?

This maybe a basic question, but I really wanted to ask it.
Consider a web application which is deployed on a cloud server and I want it to be available offline on a mobile(android device). Is it possible? Or will there be a separate installation on every mobile? How does phone gap or cordova help achieve it?
Yes it is possible. Cordova is an android application that has a webview (like a browser) for you to display an html app which is normally build with html+javascript. But cordova/phonegap applications should be made simpler than usual web application since smartphones has limited resources, unlike normal servers. There will be separate installation per mobile.
Phone Gap, Cordova etc. build native application, each user must install it to work offline. You can also build such native application manually by yourself with WebView. It can be easy to build but may require to changes in business logic to separate handle offline case, like store data locally and then sync when go online - this depend of application.

Access a local sqlite database on the android itself from a PhoneGap App

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.

Categories

Resources