Hi,
We are trying to implement the Y8 login system in our game. We are following the code in the page “JavaScript Basics” (I can’t post the link) but as soon as we reach ID.login(loginCallback); the callback function is never executed. Intead we get the following warning in the console
The key “target-densitydpi” is not supported.
Any clue about what is going on? This is the full code:
window.idAsyncInit = function() {
ID.Event.subscribe('id.init', function(){
ID.login(loginCallback);
});
var loginCallback = function(response){
console.log('loginCallback:'+ response);
if (response) { // That means that the server processed the response
console.log(response.authResponse.details);
//var obj = response.authResponse.details;
//obj.network = 'y8';
//this.loggedIn(response.authResponse.details);
}
}
// init the JS interface
ID.init({
appId: 'APP_ID'//Hiden here but correct in the code
});
};
We have tried another way to do it using ID.getLoginStatus(loginCallback, true) instead of ID.login and we get the following response:
{authResponse: null, success: false, status: “not_linked”}
But we don’t know if it’s usefull or not, neither how to get a correct response.
Thanks in advance for any help on this.
Regards