Is it possible to sent notification from Gear Provide app to Gear Consumer App ?
if possible Please provide a tutorial or sample code for that
Is it possible to sent notification from Gear Provide app to Gear Consumer App ?
if possible Please provide a tutorial or sample code for that
There doesn't seem to be any way of doing this. The Android "host" app is connected to a "provider" which implies one-way communication.
It is possible with a "push" notification to the Gear app:
Send Notification to Gear 2
Also, it should be possible to send a bluetooth event of some kind (opp / spp) but I can't find anything on that. Same thing with SMS but I haven't seen anything on that.
If I find something I'll edit this post... there seems to be a strong need for thsi.
Gear2 notification framework isn't built in as Android wear framework. To do it, you must implement two sides, your Gear2 app and your Android host app.
On your Gear2 app, the tricky part is the javascript callback to accept connection from host-app.
On Android host app, you must initiate the connection by calling
findPeerAgents
and when there is a response, request the connection:It's a bit lengthy, I detailed it here: https://tungscode.wordpress.com/2014/08/01/send-notification-to-gear2-app/