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

Allow updating of tokens #12

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

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