Get deviece orientation return unknown

Hello everyone!
I try set autoswitch for User interface in my application for android.
How to detect real orientation in Mobile
I used getDeviceOrientation, but this function return unknown value
Alse I used “ApplicationReceivedScreenOrientationChangedNotificationDelegate” from PlatformGameInstance. Unsuccessfully.
Orientation on my device swithes, but notification don’t work.
Another notifications like “ApplicationHasReactivatedDelegate” work fine.
Help pls!