This repository was archived by the owner on Nov 19, 2020. It is now read-only.
Android - Get context after realoding device#74
Open
wojteg1337 wants to merge 2 commits intomasterfrom
Open
Conversation
jukben
suggested changes
Apr 23, 2018
| Session session = RNOpenTokSessionManager.getSessionManager().connectToSession(sessionId, token); | ||
| session.setSessionListener(RNOpenTokSessionManager.getSessionManager()); | ||
| session.setSignalListener(RNOpenTokSessionManager.getSessionManager()); | ||
| Log.d("blabla", String.valueOf(session)); |
| } | ||
|
|
||
| public ReactApplicationContext getContext() { | ||
| Log.d("blabla", String.valueOf(this.mContext)); |
| } | ||
|
|
||
| public Session connectToSession(String sessionId, String token) { | ||
| // this.disconnectSession(sessionId); |
| const sessionId = 'YOUR_SESSION_ID'; | ||
| const token = 'YOUR_TOKEN'; | ||
|
|
||
| const sessionId = |
Contributor
There was a problem hiding this comment.
We probably don't want to share your credentials
| OpenTok.on(OpenTok.events.ON_SIGNAL_RECEIVED, e => console.log(e)); | ||
| } | ||
|
|
||
| // async componentWillUnmount() { |
Contributor
There was a problem hiding this comment.
Don't we need this in the example?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #68
Now we set proper context on reload, so we can see events.
🐛 🐛 🐛 Found bug that event listener isn't removed with
OpenTok.removeListener()