Search Unity

[Solved] Initialization never ends on Windows store Universal 8.1

Discussion in 'Unity IAP' started by Woj_Gabel_FertileSky, May 16, 2017.

Thread Status:
Not open for further replies.
  1. Woj_Gabel_FertileSky

    Woj_Gabel_FertileSky

    Joined:
    Jun 18, 2012
    Posts:
    61
    Hi!
    We are porting out games to unity 5 (5.5.2p4). We are using Unity IAP (1.11.0). We are Associating our builds ( by using Store option in Visual Studio) and then doing Builds. Avery build fails to end Unity IAP initialization on windows store(PC) and Phone version 8.1.

    Both platforms ( devices ) in version 10.0 works fine.

    Tried without association - fail.
    Tried different Unity versions - fail
    Tried different Unity IAP versions - major fail(black screen on device, freeze).


    I have made very basic test project and associated it with the store app. Results are the same as in the full ported version.

    Why is it possible for the Unity IAP to never call its initialization events on chosen platform?
    How can I see any logs? What is it doing in the background? Why is it failing?
    Why there are no meaningful logs?

    The logs from visual studio while running Release build on Windows phone 8.1:

    Code (CSharp):
    1.  
    2. Exception thrown: 'System.AggregateException' in mscorlib.ni.dll
    3. Exception thrown: 'System.AggregateException' in mscorlib.ni.dll
    4. Exception thrown: 'System.AggregateException' in mscorlib.ni.dll
    5. UnityIAPWin8:Begin PollForProducts() persistent = True, delay = 0, productsOnly = False
    6.  
    7. (Filename: C:/buildslave/unity/build/artifacts/generated/Metro/runtime/DebugBindings.gen.cpp Line: 51)
    8.  
    9.  
    10. Exception thrown: 'System.Exception' in mscorlib.ni.dll
    11. Exception thrown: 'System.Exception' in mscorlib.ni.dll
    12. UnityIAPWin8:Begin PollForProducts() persistent = True, delay = 10000, productsOnly = False
    13.  
    14. (Filename: C:/buildslave/unity/build/artifacts/generated/Metro/runtime/DebugBindings.gen.cpp Line: 51)
    15.  
    16.  
    17. Exception thrown: 'System.Exception' in mscorlib.ni.dll
    18. Exception thrown: 'System.Exception' in mscorlib.ni.dll
    19. The thread 0xc5c has exited with code 0 (0x0).
    20. The thread 0x110c has exited with code 0 (0x0).
    21. UnityIAPWin8:Begin PollForProducts() persistent = True, delay = 20000, productsOnly = False
     
  2. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,519
  3. Woj_Gabel_FertileSky

    Woj_Gabel_FertileSky

    Joined:
    Jun 18, 2012
    Posts:
    61
    We have resolved this issue by endless rebuilding unity project and changing everything :)

    The numbers generated in the visual studio build after associating the project with a store project were different than the numbers specified in the windows dashboard.
    We had to manually change those numbers.

    And no logs in your plugin is a very sad thing.
     
Thread Status:
Not open for further replies.