Cannot read property 'getLoginStatus' of undefined at CheckLoginStatus (app.js:19)



  • @khemry no, I created an app with visual studio and installed it on phone but I was debugging it on chrome


  • Monaca

    @Ahmed-Elshorbagy
    So you installed a debug build app on your phone and debugged it on Chrome?



  • No. I debug on my pc



  • I installed a debug version of the app and test it on my phone and used chrome inspect tool to see any errors on the inspection tool on chrome on my PC


  • Monaca

    @Ahmed-Elshorbagy
    I see. That’s why you got this error. This plugin can’t be tested on your PC or Browser. You need to test it on your device. Please use Monaca Custom Debugger.



  • I installed an apk on my phone directly, I attached the device to my PC to inspect the errors through chrome


  • Monaca

    @Ahmed-Elshorbagy
    I see. I want to confirm one thing. Please run the app on your device without debugging it. Do you still get the same error?



  • Yes


  • Monaca

    @Ahmed-Elshorbagy
    Hi,
    I’ve tested the Facebook sample app again and had no such issue.
    I’ve just realized that you are building your app using Monaca for Visual Studio. If that is the case, this might be the reason why. We have discontinued the support as well as development for Monaca for Visual Studio for several months already. Therefore, there might be some unknown errors while building your app via this service. We apologize for any inconveniences related to this. Would you please transfer your project to Monaca Localkit instead?


Log in to reply