How can I check if the internet is up and working. I used https://docs.nativescript.org/cookbook/connectivity but it says connected to wifi even when the wifi is on but internet is disconnected. I understand that this basically checks why type of connection the mobile has but that is not something I am looking for. I seaarched but couldnt find it? Can you please help?
Try using the http module to fetch a resource and check the status of the response.
Thanks alot @Kunoacc I want to avoid unncessary call everytime and I am using firebase as my http resource so not sure if this can be a best solution.
I think this is the behaviour on the simulator, try on real device