Search Unity

Daydream review failure due to IAP initiate in 2D screen

Discussion in 'Daydream' started by mikey113, Apr 19, 2018.

  1. mikey113

    mikey113

    Joined:
    Mar 6, 2013
    Posts:
    5
    Hello community.

    I am having a hard time to pass the Daydream review with my app. The reason provided by Daydream team is following: The app switches to a 2-dimensional view unexpectedly

    This is caused by user trying to buy some IAP for the first time. I was able to debug the process and find out that for some reason the acitvity handled by unity is set to com.unity.purchasing.googleplay.PurchaseActivity instead of com.unity.purchasing.googleplay.VRPurchaseActivity which is somehow set the second time when I try to purchase any product again. This cause the screen to stay in VR mode so there is no 2D screen appearing anymore.

    I tried to modify the GooglePlay.aar file in unity purchasing but I was not able to merge manifest. I also tried to find some information about UnityEnine.Purchasing namespace and how IStoreListener handle Initiating purchases but the documentation provided by Unity doesn't say much about it.

    So if there is anyone who came across with this before or know how I could fix this I will appreciate your help.

    Thanks a lot
     
  2. SiliconDroid

    SiliconDroid

    Joined:
    Feb 20, 2017
    Posts:
    302
    Bump...
    Have noticed the same behavior in my daydream game:
    For each game run: IAP goes 2D on first try then correct VR on consecutive tries.