HTML Element (Construct 3 Plugins)

  • 18
    This content is deleted
    Extension
    HTML Element

    The power of the HTML5 inside Construct 3. Create HTMLElements, handle events and manage CSS style.

You're viewing a single comment in a conversation. View all the comments
  • 9 Comments

  • Order by
  • I found some problem when run it in iOS. Though, I haven't test it much because I didn't have the device. As it happen my client test it on iOS devices and construct didn't load at all.

    Sorry that I can't explain much, I only know that it's not working on iOS, and I can't ask my client to further test it.

    • Sorry, I don't have any iOS devices. I would need some more information to understand where the problem might be...

      Does the problem occur with a web page or with an app?

      What part of the plugin are you using?

      • But then, i receive a message from my client, said that the game didn't load on iOS.

        As I do trial and error to found the problem, turn out it's HTMLElement itself.

        Once I try to remove everything from HTMLElement from my project, the game can run in iOS.

        This time, to test it, I add an instance of HTMLElement with default value. Wether the object is inside the layout or outside the layout is the same. It's not working on iOS.

        I remove the instance, leave only HTMLElement in construct project folder. It's not working too. The game didn't even load, only black screen.

        I only manage to test that, as I didn't have the devices, and my client only want to go that far to test the plugin.

        I'm sorry that I can only report it like this.

      • I create a game for facebook instant game.

        I tried to add facebook pixel in the game. I followed facebook tutorial and tried to achieve something like this using HTMLElement:

        <noscript>

        <img height="1" width="1" style="display:none"

        src="https://www.facebook.com/tr?id={your-pixel-id-goes-here}&ev=PageView&noscript=1"/>

        </noscript>

        So I do it like this:

        i.imgur.com/9gw43SA.png

        I put them in the first layout of the game.

        it work like charm, at least in pc and android.

        • Ok, thanks.

          Try to guess:

          caniuse.com/mdn-html_elements_noscript

          You can use <noscript> only with iOS 14+

          • I know that might be the issue, that's why I only use default value and didn't change anything (which is only div tag, and no other properties), and still the game cannot load.

            It load perfectly when I remove HTMLElement completely from my project.

            • Thank for your help,

              Actually I only want to inform you about the error in iOS.

              But as I don't have any data regarding the issue, it will be an impossible task.

            • Without an error message log it is complicated to figure out where the problem is.

              If you just need to add a pixel you can try doing it directly on C3 without the need for specific plugins.

              You can add a script like this when starting the first layout:

              + System: On start of layout

              -> Run JavaScript: const noScript = document.createElement("noscript");

              const img =document.createElement("img");

              const yourPixelId = "abc"

              img.height = "1";

              img.width = "1"

              img.style.display = "none";

              img.src = `https://www.facebook.com/tr?id=${yourPixelId}&ev=PageView&noscript=1`;

              noScript.appendChild(img);

              document.body.appendChild(noScript);