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
fix: wrong thread when invoking webview #351
fix: wrong thread when invoking webview #351
Conversation
Pull request title looks good 👍! If this pull request gets merged, it will cause a new release of the software. Example: If this project's latest release version is All merged pull requests will eventually get deployed. But some types of pull requests will trigger a deployment (such as features and bug fixes) while some pull requests will wait to get deployed until a later time. This project uses a special format for pull requests titles. Expand this section to learn more (expand by clicking the ᐅ symbol on the left side of this sentence)...This project uses a special format for pull requests titles. Don't worry, it's easy! This pull request title should be in this format:
If your pull request introduces breaking changes to the code, use this format:
where
Examples:
Need more examples? Want to learn more about this format? Check out the official docs. Note: If your pull request does multiple things such as adding a feature and makes changes to the CI server and fixes some bugs then you might want to consider splitting this pull request up into multiple smaller pull requests. |
Sample app builds 📱Below you will find the list of the latest versions of the sample apps. It's recommended to always download the latest builds of the sample apps to accurately test the pull request.
|
@@ -68,7 +70,10 @@ extension MessagingInAppImplementation: ScreenTrackingHook { | |||
public func screenViewed(name: String) { | |||
logger.debug("setting route for in-app to \(name)") | |||
|
|||
inAppProvider.setRoute(name) | |||
// Gist expects webview to be launched in UI thread and chaging route will trigger locally stored in-app messages for that route |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Gist expects webview to be launched in UI thread and chaging route will trigger locally stored in-app messages for that route | |
// Gist expects webview to be launched in main thread and changing route will trigger locally stored in-app messages for that route. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR looks good to me. Please review the only suggestion I added!
fixes: customerio/customerio-reactnative#161