Amazon Mobile Analytics + ionic

I’m would like to know how to connect Amazon Mobile Analytics with my ionic application. There aren’t any tutorials explaining how to use it with ionic so any help will be appreciated.

I followed the documentation provided by amazon / / but I only got it to work in the browser. It’s not working when I’m testing it on mobile devices.