Hi,
I've used the plugin to load the API and show and ad, plus have the logo load and "more games" linkage.
I couldn't get the plugin to do the splash screen- I need the api to get my game id and I don't know if the plugin supports that.
So I did the game id and the splash screen api in my game index.html.
It ticked every box in the test tool.
BUT
It failed submission because it's loading the API twice.
Has anyone else had this problem?
I've tried removing the loadAPI bit from the index but then it doesn't get the ID
Does anyone know how I can move this bit into the runtime script or the spilapi.js or something?!
<script type="text/javascript">
var SpilData = {
id: '57674**********1967' // You receive this value from Spil Games
};
//load the api before displaying the splash screen
GameAPI.loadAPI(function(apiInstance){
//all the displaySplashScreen method with the callback as a parameter
apiInstance.Branding.displaySplashScreen(continueGame);
}, SpilData);
//the callback method creates the game's main menu
function continueGame(){
// display game menu
};
</script>