How to open Instagram app from Ionic?

I'm trying to open a perfil directly on instagram app from Ionic.

appAvailability detected that Instagram is available, but when I try to open:

window.open("instagram://user?username=" + username, "_blank", "location=yes");

The app(ionic) doesn't recognize the "instagram://" and tries to open in browser or inappbrowser(plugin).

I have tried also:

  window.open("instagram://user?username=" + username, "_blank", "location=yes");

and

 $window.open("instagram://user?username=" + username, "_system", "location=no");

Nothing works. I'm doing something wrong?

Thanks

This worked for me on iPhone, use the following steps:

  1. Add the Cordova Browser Plugin.

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git

  1. Add the a link to open Instagram

<a class="item" href="#" onclick="window.open('instagram://user?username=andrewoodleyjr', '_system'); return false;"> Instagram </a>

I don't believe Android has a hook like iOS therefore the instagram:// will not work.