Skip to main content

Problem

HTML in-app may fail when script tags are used on devices.

Explanation

  • Some HTML in-app includes the following script tag:
<script src="[https://kit.fontawesome.com/b6929c81b4.js](https://kit.fontawesome.com/b6929c81b4.js)"></script>
  • The tag embeds JavaScript code to enable validation and other JavaScript functionalities.
  • Publishing an HTML in‑app campaign containing this script tag will cause an exception when viewed in the app, as shown in the screenshot:
10
  • The FileNotFound exception indicates that the JavaScript file URL https://kit.fontawesome.com/b6929c81b4.js in the script tag is invalid, preventing the HTML in‑app from loading on the device.

Solution

Providing a valid JavaScript file URL in the script tag will stop exceptions and result in a successful HTML in‑app display when the app is reopened.