iaphub / react-native-iaphub

The easiest way to implement IAP (In-app purchase) in your React Native app.
https://www.iaphub.com/
MIT License
317 stars 21 forks source link

onUserUpdate not triggered after subscription expired #132

Closed Cantinaband closed 1 year ago

Cantinaband commented 1 year ago

The event listener onUserUpdate isn't triggered from the subscription expired event subscription_expire.

Is this normal behavior?

"react-native-iaphub": "8.2.3",

iaphub commented 1 year ago

Hey @Cantinaband,

Did you try to switch the app from background/foreground after the subscription expired? The event may not be triggered "live" right when the webhook is triggered and the app is open but it will the next time the app goes to foreground (there is also 1 min cache on the client side).

iaphub commented 1 year ago

Closing the issue but can still comment if further clarifications needed. Thanks