Cordova orientation plugin works fine in emulator but doesn't work in real phone(test in ionic view)

I am using Cordova orientation plugin, when the orientation changes, the UI will change accordingly. It works well in an emulator, but when I test it in ionic view it doesn’t work. the UI which should have been changed didn’t change a little.
How to solve this? btw, I am not using ngCordova, just Cordova plugin.