0 Favourites

Need Help on Finishing RevMob mobile web plugin

  • Hi

    This is my second plugin that I'm developing. The problem now is that based from the documentation

    http://sdk.revmobmobileadnetwork.com/mobile_website.html

    <script type="text/javascript">
        var REVMOB_CONFIG = { id: "copy your RevMob Mobile Website ID here", disable_auto_fullscreen: true };
    </script>  <-- I always get "[RevMob] ReferenceError: REVMOB_CONFIG is not definedapiweb.revmob.com/assets/revmob.js:1 error"
    
    <script src="https://apiweb.revmob.com/assets/revmob.js" type="text/javascript"> </script>  <-- I believed that the only way to do this is to load the js runtime which I already done. Am I correct ?[/code:31j75r26]
    
    Currently the only way to fix "REVMOB_CONFIG error" this is to put the var REVMOB_CONFIG.... in the index.html which I think is not really secure and even elegant. People can just rip your games and replace the id easily with their own. (at least I want to make it harder for people to do this)
    
    So how can I do this correctly ? Did I declare the variable in a wrong place ?
    
    Attached is the files for the plugin. It is almost done (90% ?)  except the "Link" function. I think we can just do "Sprite" on touched "RevMob.openLink()" ?
    
    Anybody help me please.
  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Try like this it is working but in my local it is hanging.

    var REVMOB_CONFIG={ id:this.properties[0], disable_auto_fullscreen: true };

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
1,068 148,661
Reflextions's avatar
Reflextions
Unread hot topic
0 Favourites
[plugin] firebase
687 65,137
cybertron7's avatar
cybertron7
Unread hot topic
0 Favourites
[PLUGIN] Canvas
627 186,682
zenox98's avatar
zenox98