My app requires login, so when i call
Purchases.configure(new PurchasesConfiguration.Builder(mActivity, apiKey).appUserID(customUserId).build());
i always pass a customUserId, that i expect to receive on the webhooks to track user purchases on my backend.
I also never call logout.
On RC backend i have these options activated:
- Tracking new purchases from server to server notifications.
I understand that the server to server event might sometimes arrive before the SDK one, thus an anonymousUserId is created and the corresponding webhook does not provide usefull user information (customUserId). My question is once the SDK updated information arrives to RC backend, is a new webhook created with the updated info? Or do i need to listen for a diferent kind of webhook when the alias with my customUserId is created on a later time? I don’t want to be polling RC backend to detect these changes.
I could disable server-to-server event, and probably will, but i worry that i might will lose tracking of all purchaces unless RC makes sure that i will receive 100% the correspoding webhook, even with some delay, with the correct customUserId. Is that the case?
