2 little HTML5 questions about AppMobi and Web

0 favourites
  • 4 posts
From the Asset Store
Easily add web monetization to your game and start earning money from supporting visitors.
  • Hello !

    I have 2 questions :)

    1 - When I try to use AppMobi in their kind of , it asks me to put that code in the head of my index.htm :

    "<!-- the line below is required for access to the appMobi JS library -->

    <script type="text/javascript" charset="utf-8" src="http://localhost:58888/_appMobi/appmobi.js"></script>

    <script type="text/javascript" language="javascript">

            // This event handler is fired once the AppMobi libraries are ready

            function onDeviceReady() {

                //use AppMobi viewport to handle device resolution differences if you want


                //hide splash screen now that our app is ready to run



            //initial event handler to detect when appMobi is ready to roll




    I've tried, and tried, but it never works.

    Does someone has the solution ?

    2 - I tried to to put my game on my website, to share it with my friends and have their returns.

    I'm really stuck with it : i put an iframe on a page, calling the index.htm of the game, but it never works, and says that the file can't be found.

    I tried to find solution on the forum, but didn't succed in it.

    I'm probably missing something, but I don't know what.

    Thanks !

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 1) You don't need to worry about that - just choose the 'export for Intel XDK' (note they bought out appMobi) option when exporting, and it generates all the code for you.

    2) Link us to your website so we can see what you've done.

  • For number 2 are you using absolute or relative links?

  • hi and thanks for your answer.

    I'm using "www.blabla" link.

    Ashley, I did as you said, but it seems that it's not working, it's still asking me to put the code in tha index.htm.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)