Cordova_not_available & JWT auth guard (ionViewCanEnter)

**hello **
**i have problem i use diagnostic native plugin in my app to check if GPS is enabled the problem is **
i get this error cordova_not_available
image
image

my second problem is when i implement ionViewCanEnter it show the login page if i login