How to add compass?

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?

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

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

1 Like