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

Confusion about transitingType #91

Open
ilyon opened this issue Mar 26, 2018 · 1 comment
Open

Confusion about transitingType #91

ilyon opened this issue Mar 26, 2018 · 1 comment

Comments

@ilyon
Copy link

ilyon commented Mar 26, 2018

Hi guys,

I am using your nice library to communicate watchOS and iOS, I did use it before for watchOS 1 and no problems at all, but now trying to handle from watchOS 2 on I am facing something confusion.


If I initialize with:

self.wormhole = [[MMWormhole alloc] initWithApplicationGroupIdentifier:@"xx" optionalDirectory:@"x" transitingType:MMWormholeTransitingTypeSessionMessage];

and then

id messageObject = [self.wormhole messageWithIdentifier:@"identifier"];

the messageObject is nil always.


If I initialize with:

self.wormhole = [[MMWormhole alloc] initWithApplicationGroupIdentifier:@"xx" optionalDirectory:@"x" transitingType:MMWormholeTransitingTypeSessionContext];

and then

id messageObject = [self.wormhole messageWithIdentifier:@"identifier"];

the messageObject isn't nil. But when I pass a message

[self.wormhole passMessageObject:@"x.x" identifier:@"identifier"];

Every listener's block will be called.

[self.listeningWormhole listenForMessageWithIdentifier:@"x.x" listener:^(id  _Nullable messageObject) {

}];

The example also does the same for me on my machine.
Perhaps I got it wrong. Hope to get some help.

Thanks!

ilion

@thaoth58
Copy link

Hi, Anyone know this?

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

2 participants