I have created app using ionic 2 and trying to test it by running ionic lab command to test it in the ionic emulator. Also uploaded it to the ionic view and tested in my android mobile but still it is throwing the error: “Cannot read property ‘isAvailable’ of undefined”.
What can be the issue?
According to this issue that reports the same error message this may be due to the unavailability of the cordova-plugin-safariviewcontroller
. Ensure that you correctly performed the necessary steps to install that plugin. In addition, it also seems that in some testing methodologies that may be an unavoidable constraint because the plugin might not be available so also check on the device like you did after ensuring that the plugin was correctly configured.