javascript - kik.getUser() callback function is not being called? -


i've been trying make kik app can make cross platform game without learning 2 languages , keeping social considering game built directly kik , messaging. plan have app ask user's kik identity , either create account them on backend or log them in anonymous key or something. however, havent gotten far since when run code below, when gets callback message in kik.getusers(), opens accept dialog, , when click button dialog never shows up, fact maybe alerts dont work on mobile devices (i can't work anywhere in code) im not sure. also, hit 'ok' on dialog once , dialog never show again. i'm sure has kik remembering decision, reset can test app again. please help! in advance.

code: javascript

if(kik.enabled) {         alert("asdf");         if(kik.haspermission()) {             alert("asdf");             kik.getuser(function getuser(user) {                 if(!user) {                     alert("please allow wagery have soul.");                     getuser();                 } else {                     alert("asdf");                 }             });         } else {             kik.getuser(function getuser(user) {                 if(!user) {                     alert("please allow wagery have soul.");                     getuser();                 } else {                     alert("asdf");                 }             });         }          app.controller('home', function (page) {          });          app.controller('page2', function (page) {             // put stuff here         });          try {             app.restore();         } catch (err) {             app.load('home');         }     } else {         alert("your browser not kik enabled.");     } 


Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -