Search Unity

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

Discussion in 'Unity IAP' started by AllanWalker, Jun 29, 2020.

  1. AllanWalker

    AllanWalker

    Joined:
    Sep 3, 2017
    Posts:
    10
    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.
     
  2. lowLevell

    lowLevell

    Joined:
    Nov 22, 2013
    Posts:
    27
  3. AllanWalker

    AllanWalker

    Joined:
    Sep 3, 2017
    Posts:
    10
    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.
     
  4. AllanWalker

    AllanWalker

    Joined:
    Sep 3, 2017
    Posts:
    10
    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.
     
  5. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Last edited: Jun 30, 2020
  6. nicholasr

    nicholasr

    Joined:
    Aug 15, 2015
    Posts:
    183
  7. AllanWalker

    AllanWalker

    Joined:
    Sep 3, 2017
    Posts:
    10
    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.
     
  8. cvillena

    cvillena

    Joined:
    Aug 28, 2015
    Posts:
    6
    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.
     
  9. snifo

    snifo

    Joined:
    Mar 6, 2015
    Posts:
    15
    Any success with the orientation issue? Unity says it's been fixed many versions ago, but it still happens in our game.
     
  10. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Please describe your issue so we might be able to reproduce here.
     
  11. snifo

    snifo

    Joined:
    Mar 6, 2015
    Posts:
    15
    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
     
  12. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Got it. What version of IAP, are you able to reproduce yourself?
     
  13. snifo

    snifo

    Joined:
    Mar 6, 2015
    Posts:
    15
    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.
     
  14. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    The Android version would be helpful, if you can get it. Does it only happen on this one device?
     
  15. snifo

    snifo

    Joined:
    Mar 6, 2015
    Posts:
    15
    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!
     
  16. yathish9158

    yathish9158

    Joined:
    Apr 24, 2020
    Posts:
    5
    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
     
    StefanMilkov, so3arbelnox and whly like this.
  17. RamayanB

    RamayanB

    Joined:
    May 24, 2017
    Posts:
    6
    Same here. Solutions for the screen orientation flip on IAP please?
    I have reasons to believe that this bug drops sales
     
    Last edited: Dec 11, 2023
    StefanMilkov and so3arbelnox like this.
  18. so3arbelnox

    so3arbelnox

    Joined:
    Apr 17, 2019
    Posts:
    3
    Also experiencing this with IAP 4.94 and 4.10.0. Not sure how to proceed.
     
  19. unity_48CEDB9C94B428023987

    unity_48CEDB9C94B428023987

    Joined:
    Sep 28, 2021
    Posts:
    8
    I am also experiencing the device orientation change in Android 12 and 14, IAP 4.10.0, but not on every phone. Any solutions?
     
  20. YousafGrewal

    YousafGrewal

    Joined:
    Jul 5, 2018
    Posts:
    30
    Still no solution Unity Team is sleeping
     
  21. nazariy-tymkiv

    nazariy-tymkiv

    Joined:
    Dec 6, 2015
    Posts:
    3
    Same problem with orientation @JeffDUnity3D

     
  22. asadmubashr

    asadmubashr

    Joined:
    Feb 10, 2021
    Posts:
    31
    Same problem with orientation
     
  23. asadmubashr

    asadmubashr

    Joined:
    Feb 10, 2021
    Posts:
    31
    unity team sleeping
     
    JDubbY likes this.
  24. SebT_Unity

    SebT_Unity

    Unity Technologies

    Joined:
    Jun 21, 2021
    Posts:
    282
    Hey folks,
    If anyone could provide a repro and send it over in a DM that would definitely help us solve this problem.
    If that isn't possible providing versions the Android Version, Unity Versions and Phone models?

    Best,