I'd like to send and receive data from a wearOS 3 compose app using only a network connection. According to what I read, I need to use a network connection and not the Wearable Data Layer as it works only for Android devices (and I want to make it work also on iPhone). Also, I don't think using Firebase Cloud Messaging works for user that refuse notification.
To give you an exemple of what I want to do, I already developed an Android/iOS App in which users create an account. I want the watch to be linked with that account. I thougth of using a Qr code on the watch that users will have to scan thanks to the app. Then, I'll record in the database the link between the code from the QrCode and a specific user.
To sum up, how can I notify (and send data) to the wear thanks to the network? If you have a step by step tutorial, it'll be greatlty appreciated!
Related
I am creating an app in which I want to add some information such that that whatever I add to my app that data should be visible to every user on their device.
But the problem is I can not use any server but I can use wifi, so is there any way to implement my idea?
I have seen something here related my idea.
Demo app for WiFiP2P data sharing in android
we have an application under xamarin where a user connected and on a login the user DOWNLOAD the work he make it.
Device call our web service and device downloaded the datas in json format.
The data downloaded are saved into the database sql lite on client.
All work fine.
Now imagine this sample :
user has connected on the device, downloaded work.
But afer some hours, the work has changed for some reason.
We need to send new data (new work) again the particular device.
I've read some article about the google push notification but i wonder if i search on the right place.
How i can send data to a particular device under android ?
Could you share your experience, article , sample..
Thanks for your knowledge
I've read some article about the google push notification but i wonder if i search on the right place.
There is a realtime database on Firebase that will fit your requirement. But it is a cloud based service, using it probably means you have to move all your data from your server to Firebase server. So it is not a good fit, if you want to use your own webservice.
Other option is to use an AlarmManager to set a repeating task to sync your data periodically.
I need to be able to control Android phone through my webapp. I need to know which permissions do I need to take from user from his/her google account. For example I need another user to be able to send an address to this user and this should open his Google Map with that address shown. Or send a message and it should be somehow opened on the user's phone. Is this all possible? If yes, then how. If no, what can be the closest we can achieve?
If your are creating an Android application that can be installed on users phone than as far as I know this is quite possible...
All you need to do is to use push notifications server like firebase to send the data from your webapp to an application on users phone. Then according to the request received the application has to determine which intent/Broadcast to send.
I'm Making an android prototype application similar to uber. So I started with building two applications user & Driver,and my question is .
Is it possible to make user app send a request or whatever to driver app even if these two apps are located in different devices.
If that possible I want to make user send his request to the nearby driver & if the driver ignores that request. The request goes
to another driver and so on .
I'm using parse as a backend server .
You can push notification to all and ... who confirm it as first then disable request...
I need to implement a simple messaging functionality in my app . Two users who have installed my app should be able to message each other inside/outside my app . It doesnt need to be real time like a chat app. A bit of latency is acceptable . Should I implement this using a central server and a Google Cloud Messaging service like UrbanAirPush ? Or Should I use socket programming(not very familiar with this ,but I dont mind learning) .
Also , I dont want to use SMS or bluetooth for this . Please advise me on the correct approach to this . UrbanAirpush has a limit , So any other option would be wonderful .
You can create a free web service in cross-copy
You can use this api as a guide
or just Google it.
Use wifi direct or Network service discovery.
Use wifip2p can allow you easily send message/audio/picture to other device nearby, you can check this tutorial: WIFI DIRECT, the NSD is also list there. You can even find sample codes(WIFIServiceDiscoveryActivty) from Android SDK to check some more information.