lockOrientation and Immersify with ionic,

here are the list plugins not working with ionic
cordova plugin add cordova-plugin-statusbar (this one works but in log it says statsbar is not function)
cordova plugin add https://github.com/mesmotronic/cordova-fullscreen-plugin.git
cordova plugin add https://github.com/toluhta/Immersify.git
cordova plugin add cordova-plugin-screen-orientation

I checked and verifed the plusings are installed correctly
com.ionic.keyboard 1.0.4 "Keyboard"
com.mesmotronic.plugins.fullscreen 1.0.1 "AndroidFullScreen"
com.toluhta.immersify 0.1.0 "Immersify"
cordova-plugin-console 1.0.1 "Console"
cordova-plugin-device 1.0.1 "Device"
cordova-plugin-navigationbar 1.0.30 "Cordova NavigationBar plugin"
cordova-plugin-screen-orientation 1.4.0 "Screen Orientation"
cordova-plugin-splashscreen 2.1.0 "Splashscreen"
cordova-plugin-statusbar 1.0.1 "StatusBar"
cordova-plugin-whitelist 1.0.0 “Whitelist”

but I try to access api like
Immersify.enable(successCallback, errorCallback);
screen.lockOrientation(‘landscape’);
all of them are giving error

is there anything I am missing here for plugins not to work.

thank you

are you using them inside deviceready event? if not then plugins are only available after deviceready even fires.

I am using them in deviceready and it still says plugins api undefined

then check the documentation. it might be that the js is not included during build.

These plugins work just fine:

cordova plugin add cordova-plugin-screen-orientation
cordova plugin add GitHub - mesmotronic/cordova-plugin-fullscreen: Plugin for Cordova (PhoneGap) to enable Android's various full screen modes

I can even give you a tutorial for the first one: Gajotres - Best Technology Product Reviews, News, Tips, and Comparison

Sometimes you need to remove and add plugin again for it to work. Or you can do it manually thus making sure everything is set correctly. While automatization is great sometimes it will not work, so always check everything manually.

@Gajotres,
I tried both plugins and fallowed the same tutorial on you mentioned and verified everything I know about installing plungs
but still its not working (I was testing it using phonegap developer app on htc m8-lollipop)
you can think you can setup demo for me on github which i can download, because I tired everything and need to get this working for my app.

Thank you