GithubHelp home page GithubHelp logo

Comments (5)

ericvangeem avatar ericvangeem commented on July 26, 2024

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.

tgardner avatar tgardner commented on July 26, 2024

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.

ericvangeem avatar ericvangeem commented on July 26, 2024

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.

tgardner avatar tgardner commented on July 26, 2024

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.

joshardt avatar joshardt commented on July 26, 2024

Thanks a lot!

from cordova-androidwear.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.