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
Related
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?
I have developed a hybrid app running on Android, that successfully monitors the users location and displays it to the user as a moving icon on a map. This part of the app is all written in javascript and works inside a webview. The webview also communicates with my remote server to share the user's location with other users of the same app.
Up until Android Nougat this all works even when the app is backgrounded for several days. When the user returns to the app they can see where they have been with timestamps at each point. And all the other app users can see where everyone is, even if they are no actively using the app.
From Android Oreo onwards, I had to move the location tracking to a background service to get it to continue in the background and I have tested this to be still working fine even with the app in the background for a long period. Returning to the app, the user can still see where they have been. However the remote communications to the server, on Android Oreo and later, cease after approximately 2 minutes in the background.
Please could someone explain why this is, and what I could (if anything) do about it?
What is the restriction that I am running into and where is it documented on Android developer? I have set the app as not to be limited in settings/network/data saver and this makes no difference.
Would it make a difference if I replaced the webview XMLHttpRequest with similar code in background service, using volley or something similar?
All help very much appreciated.
Although I have not discovered what restriction I am running foul of, I have found that by moving the http request from the web view to the background service using volley, the server continues to be updated whether or not the application is in the foreground.
Only tested so far on Android 8,9 and 10 in the emulator. Testing soon on a real device
I want to know the process flow of android apps like i have an app in my device by which it blocks the apps in background. Eg - If the app is forbidding the whatsapp then there will not be any notification in the device untill and unless the app is opened by user.
I want to basic mechanism how the app is doing this as it blocks the apps and also disable data for that forbidden app.
You can not block notifications of any other Android Application or disable its background processes. You might be able to achieve that on a rooted device but that's something not appreciated.
Again if you want to disable data programmatically, you require a rooted device. You can read that here.
If you want to achieve Single-Purpose Device, read here.
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.
If an app is in the background, and the user receives the push, and the user taps on the notification, thus making the app active, how do I detect in PubNub whether the app was brought from the background as in this case? Help is much appreciated! Thanks!
Android & iOS have delegates/events that handle this and at that point, you could manually do whatever is necessary. However, PubNub's SDKs reconnect and retrieve missed messages automatically. Android requires some extra code but pretty trivial. There are is some level of customization that you can do when you initialize PubNub in the app.
See the Android SDK docs and iOS SDK docs for more details and contact support#pubnub.com, if needed.