Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listen for messages Cordova App is not working #52

Open
ksvaghela opened this issue May 31, 2016 · 3 comments
Open

Listen for messages Cordova App is not working #52

ksvaghela opened this issue May 31, 2016 · 3 comments

Comments

@ksvaghela
Copy link

ksvaghela commented May 31, 2016

Hello,
We have integrate this plugin successfully.
For sending message from Phone to watch is working perfectly.
But when we are trying with apple watch to iPhone app than its working at first time only.
Can you please help me to solve out this.


// assumes a previously successful init call (above)

applewatch.addListener("from_watch_queue", function (message) {
    // handle your message here
});

Thanks
Ketan

@illambo
Copy link

illambo commented Aug 24, 2016

I have the same problem.
Someone can help us?
Thanks

@illambo
Copy link

illambo commented Aug 25, 2016

With transitingTypeSessionMessage seems working, but i'm not sure if is the right way.

@bvsc
Copy link

bvsc commented Nov 19, 2019

where to write the below code i wrote in interfacecontroller.swift > awake and willActivate method it is not working

watchConnectivityListeningWormhole.listenForMessageWithIdentifier("from_phone_queue", listener: { (messageObject) -> Void in
if let message: AnyObject = messageObject {
// handle your message here
}
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants