Skip to content

Commit 26775d9

Browse files
authored
Merge pull request #442 from Iterable/jay/MOB-4263-blank-in-app
[MOB-4263] use load data with base URL due to platform change
2 parents 708002a + 00cedf1 commit 26775d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

iterableapi/src/main/java/com/iterable/iterableapi/IterableWebView.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ void createWithHtml(IterableWebView.HTMLNotificationCallbacks notificationDialog
4343
getSettings().setJavaScriptEnabled(false);
4444

4545
// start loading the in-app
46-
loadData(html, MIME_TYPE, ENCODING);
46+
// specifically use loadDataWithBaseURL and not loadData, as mentioned in https://stackoverflow.com/a/58181704/13111386
47+
loadDataWithBaseURL("", html, MIME_TYPE, ENCODING, "");
4748
}
4849

4950
interface HTMLNotificationCallbacks {

0 commit comments

Comments
 (0)