cocos2d-x and iPhone X home Indicator

iPhone X and higher version of iPhone has the Home Indicator instead of the physical Home Button. When I implemented 2048 game which works with finger gesture, I had to swipe up twice to exit to iPhone home screen. This always triggered an unintended block movement in the game.

When I checked the options related with Home Indicator, I found the preferHomeIndicatorAutoHidden function is related with this behavior.

If it returns YES, then the home indicator is auto-hidden and only one swipe up gesture triggered the home indicator action.

If it returns NO, then the home indicator is always shown and I need two swipe up; first to activate the home indicator and the second for the home indicator action.