hii, i need help, im using the sdk for javascript, i want to test on the email if it is correct or not while logging in, on the similater of tizern sdk it works fine but using the emulator it access the ‘‘userLoggedInStatus’’ and ‘‘gotError’’ both while it should only execute one either successfull or fail, can any one help about this matter ?
Hi,
Are you saying that when you make a call to check user’s email address, BOTH “success” and “error” callback functions are executed?
Mark
thank you for answring sir, and yes that is what happens i wrote an “alert” to check and it accesses both, only on the emulator, for the simulator wich is basicly the browser it works perfectly
I do not see how it would be possible - our library calls only one of the callbacks. Could it be a problem in your code?
maybe it is in my code im not that professionnel developper, this is my code any way can you see the error sir ?http://support.backendless.com/public/attachments/620d9020ac1d77fb5a475774afdd3117.png</img>
http://support.backendless.com/public/attachments/73aef019ca4052c92e27843dbb897faa.png</img>
Well, I can see that your code also invokes “userLoggedInStatus” directly right here: So it is possible that the first call is not a callback, but simply the direct invocation of the function right from your code. And the invocation of “gotError” is actually a callback.
http://support.backendless.com/public/attachments/bb53feb6766817d1a1b9d5eab7340b05.jpg</img>
sorry i bothered you too much but i deleted the whole userlogedinStatut condition and still the same thing similator works fine but emulator no, can i send you the whole app.js code ?
Sorry, unfortunately I would not be able to help as a part of standard support which covers strictly Backendless API and the backend service. if you would like us to review your code, please consider purchasing “single incident pack”. See the support policy for details.
Regards,
Mark
all my code is backendless code sir, i m using the login api and sign up api only in this app.js file.
Well, if you have doubts if the API works, here’s a perfectly working sample. As you can see only one callback is executed:
thank you very much mr Mark i really approciate it


