Comments (5)
I was just about to open up an issue with a similar question as I am also very curious, but you beat me to it.
When I paste the provided sample code from the README into my Cordova app I can see the alert message "Connection Successfully Established" which is nice, but that's about as far as I've gotten so far.
I have an existing Wearable app that I've modified to listen for incoming messages from this plugin using the "net.trentgardner.cordova.androidwear.NewMessage"
message path. My Wear activity implements the MessageApi.MessageListener
interface and is listening for incoming messages in the onMessageReceived
hook method, but for some reason I am not receiving these messages at all.
I've checked the ADB logs and I see various error messages related to Google Play services such as this E/GooglePlayServicesUtil﹕ The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
however I definitely have the google play services cordova plugin installed just as this project's README says to do so.
Any further guidance from here, such as an example Wearable app that integrates with a cordova app, would be of great help.
from cordova-androidwear.
Hey guys,
I've put together a basic example that you can follow at https://github.com/tgardner/cordova-androidwear-example
Hope it helps.
Cheers,
Trent
from cordova-androidwear.
Thanks! In addition to cordova platform add android
do I also need to add your plugin to the phone module via cordova plugin add https://github.com/tgardner/cordova-androidwear.git
?
from cordova-androidwear.
It should pick it up automatically from the projects config.xml
when adding the platform.
Also the issue you're describing sounds like your watch apps package ID is different from your phone app. They need to be the same.
from cordova-androidwear.
Thanks a lot!
from cordova-androidwear.
Related Issues (13)
- Question on the Example HOT 3
- Link to iOS Phone App HOT 1
- Project still active? HOT 2
- NodeApi and MessageApi deprecated, can't build APK HOT 14
- Cannot Find Symbol error with 1.0.1 HOT 19
- Working example? HOT 1
- Where i have to add the java files HOT 2
- sending and receiving messages problem HOT 2
- Plugin add HOT 2
- Plugin install FAILED, please fix bug!!! HOT 2
- Breaks Intel XDK's debug module builder HOT 1
- Please add typescript definition file.. (to work with ionic-v2 & Angular2) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-androidwear.