Set up webhooks to track your app’s revenue and subscription events. This is important if you want Helium to display subscription, revenue, and other metrics!
Go to your dashboard’s revenue settings to configure webhooks.You have 3 options (only do one of them):
This option is recommended if you are using StoreKit to handle your purchases.
Send purchase events direct from Apple to Helium. Follow the instructions shown under App Store Connect Configuration. If you already consume these events on your own server, then consider the Forward option below.In your SDK integration, be sure to use one of the pre-built delegates (StoreKitDelegate/RevenueCatDelegate) or the heliumPurchase method in your custom delegate for proper tracking of purchases.
This option is recommended if you are using RevenueCat to handle your purchases.
Use RevenueCat webhooks to send purchase events to Helium. Follow the instructions shown in the web app under RevenueCat Webhook Configuration.In your SDK integration, make sure to provide a revenueCatAppUserId when you call the Helium initialize function.
This option is recommended if you are using StoreKit to handle your purchases but want to consume App Store Server Notifications on your own server and forward those events to Helium.
In your dashboard’s revenue settings under the section App Store Connect Configuration grab the Webhook URL and use that value in your forwarding code.Wherever you consume webhook events for App Store Server Notifications, you’ll want to add a snippet of code that forwards the exact, unmodified ASSN payload to Helium.Here is some example forwarding code. Reach out to Helium support if you have any questions.