Hello,
i found the following issue when using Unity with UniTask within an android project with the IAP package.
To use IAP (In-App Purchasing) you have to connect your game with the store which uses a task you have to wait for. If you now also have the UniTask Package installed and have overwritten the SynchronizationContext explained in https://github.com/cysharp/UniTask?tab=readme-ov-file#unitasksynchronizationcontext , then the task will never end. There is no error, no confirmation, no logs, nothing. The task will run forever.
After i removed the injection of the UniTaskSynchronizationContext everything worked. Just wanted to note it somewhere because i was debugging for a very long time and found no similiar issues/problems. Maybe an additional hint to be careful about this circumstance coulb helpful for other developers as well.
Hello,
i found the following issue when using Unity with UniTask within an android project with the IAP package.
To use IAP (In-App Purchasing) you have to connect your game with the store which uses a task you have to wait for. If you now also have the UniTask Package installed and have overwritten the SynchronizationContext explained in https://github.com/cysharp/UniTask?tab=readme-ov-file#unitasksynchronizationcontext , then the task will never end. There is no error, no confirmation, no logs, nothing. The task will run forever.
After i removed the injection of the UniTaskSynchronizationContext everything worked. Just wanted to note it somewhere because i was debugging for a very long time and found no similiar issues/problems. Maybe an additional hint to be careful about this circumstance coulb helpful for other developers as well.