width/height inverted after click on push notification from lock screen

  • smitpatel88
    Likes 0

    Problem Description

    I am using cocos2d-x 3.6, game is in landscape mode.

    I had followed your push notification(using batch framework) video for iOS & Android both

    for iOS everything is fine

    for Android i have one bug

    If i open push notification from lock screen than width/height is inverted so half of the screen display black, i have screenshot but i dont know how to add here.

    methood onSizeChanged is called twice from Cocos2dxGLSurfaceView.java

    first with width-1080 & height-1920 than width-1920 & height-1080 (testing on Galaxy s4)

    Note: if i open from title bar without lock screen than everything is fine.

  • Sonar Systems admin
    Likes 0

    in the AndroidManifest.xml what is the orientation set to?

  • smitpatel88
    Likes 0

    android:screenOrientation="sensorLandscape"

  • Sonar Systems admin
    Likes 0

    Can you confirm the orientation you would like your app to be please.

  • smitpatel88
    Likes 0

    sorry, i dont get that. what do you mean by that?

    Edit:

    I want my game in landscape mode or reverse-landscape mode.


Login to reply