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:
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git
<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.