We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 236ecfc + 8656b2d commit cb58ec5Copy full SHA for cb58ec5
iOS_SDK/OneSignalSDK/Source/OSInAppMessageViewController.m
@@ -296,8 +296,10 @@ - (NSString *)setContentInsetsInHTML:(NSString *)html {
296
- (void)setWaitForTags:(BOOL)waitForTags {
297
_waitForTags = waitForTags;
298
if (!waitForTags && self.pendingHTMLContent) {
299
- [self.messageView loadedHtmlContent:self.pendingHTMLContent withBaseURL:[NSURL URLWithString:OS_IAM_WEBVIEW_BASE_URL]];
300
- self.pendingHTMLContent = nil;
+ dispatch_async(dispatch_get_main_queue(), ^{
+ [self.messageView loadedHtmlContent:self.pendingHTMLContent withBaseURL:[NSURL URLWithString:OS_IAM_WEBVIEW_BASE_URL]];
301
+ self.pendingHTMLContent = nil;
302
+ });
303
}
304
305
0 commit comments