I need to check if the custom protocol available using browser and if not need to show a message . I have implemented this according to https://gist.github.com/aaronk6/d801d