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

Not getting message in Swift #70

Closed
TaimoorAli-Sematree opened this issue Nov 24, 2015 · 5 comments
Closed

Not getting message in Swift #70

TaimoorAli-Sematree opened this issue Nov 24, 2015 · 5 comments

Comments

@TaimoorAli-Sematree
Copy link

I'm facing some issues. Kindly answer me to fix the issue. On iPhone app side I'm using this

let wormhole : MMWormhole = MMWormhole(applicationGroupIdentifier: "group.com.xyz", optionalDirectory: "ProjectDataDict")
wormhole.passMessageObject("message recieved or not?", identifier: "ProjectData")

Just this code on iPhone side no. And on swift side I am doing this

wormhole = MMWormhole(applicationGroupIdentifier: "group.com.xyz", optionalDirectory: "ProjectDataDict")
let messageObj = wormhole.messageWithIdentifier("ProjectData")

But it is not giving me any message. Kindly tell me the issue. . .

@li5414
Copy link

li5414 commented Jan 18, 2016

i have the same problem

@roeemins
Copy link

for listening to msgs you should do something like:
wormhole.listenForMessageWithIdentifier("ProjectData", listener: { (messageObject) -> Void in
if let message = messageObject as? AnyObject {
// Do something
}
})

@mpinka
Copy link

mpinka commented May 24, 2016

i have same problem same problem with obtaining msgs.

On iphone side i pass object by calling wormhole.passMessageObject.
On watch side im trying to obtain the msg by calling wormhole.messageWithIdentifier, but it returns nil. I also tried to us wormhole.listenForMessageWithIdentifier but block is not called.

@cashish
Copy link

cashish commented Jul 13, 2016

i too tried to using wormhole.listenForMessageWithIdentifier but listener block is not called.
any work around or fix?

@cnstoll
Copy link
Contributor

cnstoll commented Jul 14, 2016

Can you tell me more about your project configuration? Are you on watchOS 2 or 3? Are your app groups setup correctly? Does messageWithIdentifier work even when listenForMessageWithIdentifier fails?

Need a little more information to help debug, but this sounds like a configuration issue to me.

@cnstoll cnstoll closed this as completed May 22, 2017
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

6 participants