Real Time Data Sync in iOS and Android application - android

In my application (iOS and Android), I have to create sync process in which changes in one device (suppose iOS) reflect the same on other one (suppose Android) I.e. something like real time method callback on other device with data change. Also is it ok if I try to create XMPP server for this?. I know it is use for real time messaging thing but just to reflect changes on other device can we use this? Plus if you are going to suggest third party API then preferably free one.

Related

how to make an app that automate rideshare/restaurants app requests (ex. mystro)

does anyone have any idea how to make an app that automates and filter rideshare/restaurant apps requests? It's kinda working as an umbrella for more than one app.
for example, the XYZ app will be in the foreground and will monitor both Uber Eats and Postmate in the background and whenever requests are received it will show on the XYZ app screen with its details.
I believe it's not doable on the IOS but its existing on android on an app called Mystor. it uses somehow advisability functions in the phone but I want to understand the logic behind it and know how does it work?

Android app to perminantly monitor a database and alert on change

I am looking to create an app that monitors an online sql database and alerts the user if records change. In case you're interested, the database is being updated by a computer as to the state of some sensors the computer is monitoring. I have already got the database and monitoring computer working perfectly and have made an app to see the data in a list view. What I want is an app that opens on start up and runs in the background constantly and when changes occur can trigger an alarm and a toast telling me what's going on. I suppose it's similar to all the push notifications your phone gets from facebook and the like but I intend the app to be actively querying the database.
Anyone able to help or point me in the right direction? I've looked around but can't seem to find the info. I'm sure it's there, I must just not be using the right terms.
Thanks for your help.
So basically here is the systems approach to what you're trying to do. You're going to want to establish some sort of websocket on your backend and some sort of NoSQL like Redis to help manage the pub/sub part to your Android App in order to stream live updates from your web/database server. Then when you go to update the record in your database you also send information over the websocket to your Android App.
That's the gist of how that type of thing works.

How to send data from an Android application to a server?

I'm developping an online Chess game in Android. The first player uses the app and the second a webpage in html.
What i want to do is to send the text with the information of every move each player makes in his turns. All the processing and validation parts of the game will be done in the Android application. The second player just receives the text, parses it into html code and then send a very similar text to the application in order to receive the authorisation of the move.
I'm really trying to spend the least possible of internet resources.
I've been searching what's my best option in order to send the messages with Android, but since I'm not very experienced with it, I don't know what to do.
I found these possibilities for sending the messages:
GCM
Android ServerSockets and Sockets
Making Push technology, like long-polling
I have never used any of those technologies, but I would like to know which one could be the best for starting to make a deeper research of.
As you can see a chess game doesn't need a great amount of messaging since I have to send and receive a single message per move and per the authorisation of it by the chess engine in the Android application.
If you know a better solution or links with an example of the technology I should use, I would be very grateful.
On your case it's just matter if the the Android player will need to be with the app running (real time play) or there will be the option to send the play, play turn off the app, and see the next move in a few hours?
If it's a real time just open the connection and use polling or sockets to keep the game running.
If it won't be a real time game, GCM is probably your best approach.
But remind that both options will mean you'll need your own web-server running stuff.

Xamarin Monodroid auto update data on Android App

Is there a way or an example to use a service or something to auto update any changes made from an app to show on other devices using the same app?
We have a native/local application we use in-house for Android tablets for taking and editing data. More or less a check-in app.
We were needing to:
If a users on one tablet makes a data change in their application, to automatically change the status/data on the other tablets running the same application without having to manually refresh or restart the application.
If a user makes a change to the data and saves it, could we cause a push notification to the other tablets to indicating a change to the data has been made.
if you are working "online" or at least on a network, you could use a REST request to send your changes or a notification to a server (depending on what you need). Then the notification to other devices can be handled through libraries like Signal-R or PushSharp

Can i call an android application's method remotely?

I am developing an android application. What i want is to call a method present in that android application remotely from a desktop like from a "servlet" or an application.
How can this be done?? For example i want to call a method which i have already written in the app which calls a particular number. How can i invoke this method remotely?? please help.
PS - It is kind of urgent.
It will be hard to communicate from your desktop to your handheld. But you can poll a server from your handheld.
Write an app that every n seconds (the frequency you require) polls e.g. a web page on your server. When the web site's content is "noop", the app does nothing and keeps on polling. If the web site's content is "doit", the app dials the number you want.
So, when you change the content of this web page either manually or programmatically you can "remote-control" your hand held.
This is just an example, it must not be HTTP, neither NOOP and DOIT, just anything you like. Let the server return the phone number which you want dialled for instance.
Well, sounds like you want your app to be waiting for push notifications. I think this question is exactly what you need to look at.

Categories

Resources