How to add compass?


#1

Hi
I had an apps build in AndroidStudio. Now I Love ionic2 and making that apps. I read native in ionic2 document. But did not find any compass related issue. Can anybody help me, How can I add compass in my apps?


#2

You can use the device orientation plugin to access data from the compass:

this plugin is also able to be used with Ionic Native:

http://ionicframework.com/docs/v2/native/Device%20Orientation/