cocos2d x – Cocos Creator – orientation change event in native build for iPhone and Android

I am creating a hybrid application that has a native role in iOS and Android and common features (including games / animation and the user interface) that I create in Cocos Creator.

The problem I face when trying to change the orientation of the device from Portrait to Landscape of the reverse.

I've tried to get the current size of the frame or to be notified of the change, but without success.

Anyone facing this problem? Every idea is welcomed!