Open ghost opened 9 years ago
I'm trying to do something very similar, except I want data from the wearable to the phone, without the app being opened on the phone.
There is no reason it shouldn't work. Send a Message to the service to make it start.
Sending a message to the service to start an activity work very well. But how can you send a message to a service that needs to get data from a database and then send back a response to the wear with the data. Keeping in mind that this has to be done without the mobile app being opened.
Send a message to the service. The message must include parameters. Have the service fetch your data and put them in the datamap then. You should have a service or something on the wear app that listen for change on the data map. Then you are done.
Todo list :
Did I answer your question ?
Thanks for the explanation! I think the problem where im stuck in is around step 4 and 5. I made a simple test app for trying to implement this setup. Is it possible for you to review my code?
You should submit a question on SO. There is no issue on Teleport here.
I will answer you on StackOverflow if you put a question there.
It is possible to receive a messages and open activities from a services. But can you also send a response message in a service. I want to be able to get data from the phone to the wearable, without the app being opened on the phone.