android / play-billing-samples

Samples for Google Play In-app Billing
Apache License 2.0
2.36k stars 1.33k forks source link

Need help! Application changes orientation on start billing flow #653

Open yevhenkomarov opened 6 months ago

yevhenkomarov commented 6 months ago

My application is designed to work in landscape but when payment starts and google pay dialog appears - it changes orientation to portrait. As a result application reload because of size change. It is reproduced not on all devices.

Billing library is integrated using cordova plugin. Maybe some cordova plugin settings are absent?

In app manifest file orientation property is present for my activity. android:screenOrientation="sensorLandscape"

What can I do to make it stay in landscape forever?

P.S. ClassyTaxyJava sample works in similar way.

donadoo commented 3 months ago

My application is designed to work in landscape but when payment starts and google pay dialog appears - it changes orientation to portrait. As a result application reload because of size change. It is reproduced not on all devices.

Billing library is integrated using cordova plugin. Maybe some cordova plugin settings are absent?

In app manifest file orientation property is present for my activity. android:screenOrientation="sensorLandscape"

What can I do to make it stay in landscape forever?

P.S. ClassyTaxyJava sample works in similar way.

@yevhenkomarov I found that this problem is related to the googleplay version.

donadoo commented 3 months ago

but why google play change my billing oriention?