Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

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

    Unity Technologies

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

    nicholasr

    Unity Technologies

    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:
    13
    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

    Unity Technologies

    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:
    13
    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

    Unity Technologies

    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:
    13
    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

    Unity Technologies

    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:
    13
    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!