Cocos2d-x In-App purchase status indicator

Hello,

I want to display loading animation(spinner) for in-app purchase while processing them, is there Cocos2d-x specific function to make it? By default when In-app purchase screen pop-ups everything freezes in app.

So I see there 2 possibilities , run this animation in separate thread(have no experience with this) or add some native Android/IOS code which will show animation while processing payment.

Maybe someone already implemented this and can share his example.

We using Cocos2d-x 3.8.1 C++ sdkbox IAP and targeting IOS & Android.

I don’t think there are cocos2d-x specific way of handling it. But sdkbox IAP dose have callbacks… You can put a layer on the top to prevent any clicks and play an animation while payment is processing.