OneSignal-Android-SDK
OneSignal-Android-SDK copied to clipboard
InAppMessage does not appear in app with chromium javascript error
Description: After received InAppMessage JSON Obejcts. InAppMessage does not appear in app and here's log
Successfully finished request to: https://api.onesignal ...
OneSignalRestClient: GET RECEIVED JSON: {"html":"\u003chtml\u003e\n\u003chead\u003e\u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no\"/\u003e\n\u003cstyle\u003e\n * {\n -webkit-touch-callout: none;\n -webkit-user-select: none; /* Disable selection/copy in UIWebView */\n }\n\n h1 {\n font-weight: 400;\n }\n\n body {\n font-family: -apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif;\n ove
...
D/OneSignal: OneSignal SessionManager onInAppMessageReceived messageId: 87add609-b1f8-41fc-b1b1-089be3f1089d
D/OneSignal: OneSignal OSChannelTracker for: iam_id saveLastId: 87add609-b1f8-41fc-b1b1-089be3f1089d
D/OneSignal: OneSignal OSChannelTracker for: iam_id saveLastId with lastChannelObjectsReceived: ...
D/OneSignal: OneSignal OSChannelTracker for: iam_id with channelObjectToSave: [{"iam_id":"...","time":1626840289244},{"iam_id":"...","time":1626843238506}]
D/OneSignal: OneSignal ChannelTracker getLastReceivedIds lastChannelObjectReceived: [{"iam_id":"...","time":1626840289244},{"iam_id":"...","time":1626843238506}]
D/OneSignal: OneSignal OSChannelTracker resetAndInitInfluence: iam_id finish with influenceType: INDIRECT
D/OneSignal: in app message showHTMLString on currentActivity: ...
I/WebViewFactory: Loading com.google.android.webview version 91.0.4472.164 (code 447216430)
.....
I/chromium: [INFO:CONSOLE(318)] "Uncaught ReferenceError: setPlayerTags is not defined", source:
data:text/html; charset=utf-8;base64,PGh0bWw+CjxoZWFkPjxtZXRhIG5h .....
I/chromium: [INFO:CONSOLE(99)] "postMessageToNative(): {"type":"rendering_complete","pageMetaData":{"rect":{"height":672},"outerContentContainerRect":{"x":24,"y":24,"width":1184,"height":632,"top":24,"right":1208,"bottom":656,"left":24}},"displayLocation":"center_modal","dragToDismissDisabled":false}", source: data:text/html; charset=utf-8;base64,....
I/chromium: [INFO:CONSOLE(115)] "Uncaught TypeError: window.OSAndroid.postMessage is not a function", source: data:text/html; charset=utf-8;base64,PGh0bWw+CjxoZWFkPjxtZXRhIG5hbWU9InZpZXdwb3
Environment
Android : 10 ~ 11 (Samsung Galaxy 10s, Samsung Galaxy tab A 2019) webview version 91.0.4472.164 ( chrome ) OneSignal : 3.15.2, 4.3.4 both
Steps to Reproduce Issue:
- Web OneSignal > Messages > In-App >
Send to test Device
Hi @minozzang508, sorry for the delayed response. Is this still an issue for you?
Closing issue due to no response. Please @ mention me if we need to revisit this issue.
We have an updated major release available for our Android SDK with many improvements and enhancements! Please refer to the migration guide for more information on upgrading.
Thanks!