JS code:
function onTwitterLogin(token, tokenSecret, userId)
{
// …
}
but the logcat shows:
cocos js error:: ScriptingCore::evalString line:1 msg:ReferenceError: onTwitterLogin is not defined
cocos2d-x: ScriptingCore::callFunctionName error:__errorHandler wasn’t found!
I don’t know what is wrong in this code. Any help?
Please, can help me? I really need a solution. I have found a similar post written one year ago… I am not sure if this functionality is working properly in cocos2dx:
Can you tell this ‘require(“LoginScene”);’ is your LoginScene.fire or LoginScene.js or something else? I am stuck here, any help will be highly appreciated. Thank You.