Search Unity

Unity IAP crash when use async/await

Discussion in 'Unity IAP' started by Ichimitsu, Jul 13, 2019.

  1. Ichimitsu

    Ichimitsu

    Joined:
    Oct 9, 2014
    Posts:
    26
    Hello! We encountered a problem while using Unity IAP. IAP crashes when using async / await. Before initializing the plugin, we check access to the Internet, this is done through the asynchronous method (Task.Run is not used). If, after await, IAP is initialized, then the application crashes in Android (there are no exceptions in the Android monitor).

    Android version 7.0, Unity version 2018.4.3f1
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Please provide steps to reproduce on a new project. Consider reproducing with the IAP Sample Project listed on this forum.