Using react-native-purchases v5.0.2 and I can’t seem to get Purchases.addCustomerInfoUpdateListener to fire when I make a purchase (it’s not a subscription in case that matters). Testing in both simulator and a device and neither seems to work.
I have a hook to track “premium” status and I want my tab view to automatically update when premium is unlocked from a different screen. I could hack in a manual call to `getCustomerInfo` when a screen regains focus but this is error prone so I’d really like to avoid it.
Also, in case it matters. The documentation mentions:
This will fire whenever we receive a change in purchaser info on the current device and you should expect it to be called at launch and throughout the life of the app.
But I’m not seeing it “called at launch” either.
Any help here is greatly appreciated.