Can I use Ionic for building an app that interact with Health Vault?

Hi, I have been having trouble with build an app that can pull or put data to Health Vault which is powered by Microsoft. It is using xml, asp.NET obviously.

I wanted to build an app connect with HealthVault using the offline web connection option. So far, I don’t have much luck on that. When I use inappbrowser, I can redirect the user to authenticate my app in healthvault, however after the inappbrowser is closed the .then callback function is not running. Then I tried to use $http directly, then i run into CORS problem. I am just wondering if this combination is possible?

I know that I can set up Azure proxy server for the connection, but it is not very optimal.