IAP work well on android device before, but not after upgrading

I just upgrade to the latest version today and I find that the IAP become very strange after that. Firstly, every time I open that app and click to buy a product, then click outside the IAP dialog to cancel it, success method fired. It only happen one time every time you relaunch the application.

Secondly, My game is landscape only with auto rotation enabled, but when I open the IAP dialog, it true my game portrait and distort everything. It turn back to landscape after the dialog closed. Before, it works well with a landscape dialog, but not now.

Are they bugs or just something I have to change the setup? I don’t expect an upgrade can break everything. Please help.

I have a similar problem. This problem started in version 1.23.2 and wasn’t in version 1.23.1.

You can look at this topic

Thank you, I downgraded to 1.23.1 and the first problem gone. However, the second problem still there. Where can I found all other previous versions? I can’t remember which version I am on before the upgrade.

Just check the release note, seems that it should be a bug that fixed previously…but it actually in my game with the latest version…

[1.11.1] - 2017-05-23

Fixed

  • GooglePlay - Fix regression seen during purchasing where GooglePlay Activity forces screen orientation to portrait and turns background black. Restores neutral orientation and transparent background behavior.

@AllanWalker Unity IAP Previous Versions (Obsolete - please see Package Manager) We made not changes in this area. Are you using a RTL or LTR device?

@AllanWalker please see the other thread for a fix to the “cancel and success” issue you identified. Thank you for the fast report!

Thank you very much, just submitted the project for review on app store with previous IAP version. I will give it a try on the next release.

We faced the portrait issue too. But with further testing we found the issue not only with Unity iAP but also with other games of Google Play. So could be an issue of Android 10.

Any success with the orientation issue? Unity says it’s been fixed many versions ago, but it still happens in our game.

Please describe your issue so we might be able to reproduce here.

The game is in landscape mode but the screen orientation changes to portrait when the payment window is opened. Here’s a video from a tester, who encountered the issue on a Nokia 2.3. Unfortunately I don’t know the exact Android version.

https://drive.google.com/file/d/1JailvNo_QuiNDvZUdKK6kxFvVzr9Ic1r/view

Got it. What version of IAP, are you able to reproduce yourself?

I can’t reproduce it on my devices, that’s why I’m looking for help here. We’re working with a third party company for testing and the only info I got is that it occurs on a Nokia 2.3. The IAP version is 3.2.2.

The Android version would be helpful, if you can get it. Does it only happen on this one device?

I’ll try to get in touch with the testing team tomorrow (it’s a bit late here) and I’ll let you know if I get more info. Thanks for the assistance!

Hello @JeffDUnity3D , I’m experiencing the same issue as @snifo . The problem is also observed on other devices.
Android version - 12
IAP version → 4.9.4

3 Likes

Same here. Solutions for the screen orientation flip on IAP please?
I have reasons to believe that this bug drops sales

2 Likes

Also experiencing this with IAP 4.94 and 4.10.0. Not sure how to proceed.

I am also experiencing the device orientation change in Android 12 and 14, IAP 4.10.0, but not on every phone. Any solutions?

Still no solution Unity Team is sleeping