Skip to content

Conversation

ream88
Copy link

@ream88 ream88 commented Aug 23, 2016

No description provided.

if (_phone == nil) {
_phone = [[TCDevice alloc] initWithCapabilityToken:token delegate:self];
} else {
[_phone updateCapabilityToken:token];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be it's own exported method?
Then you can call either init or update from the JS, otherwise this method is a bit of hidden magic for updating the token.
@ream88 How are you using this method in your code? Are you calling initWithToken more than once?

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

Successfully merging this pull request may close these issues.

3 participants