1. Launch SDK
Initialize the SDK:2. Sync Purchases
iOS, StoreKit 2
Subscriptions only
In case you’re using StoreKit Version 1, we automatically handle all the needed data about transactions that occurred. However, in the case of StoreKit Version 2, it is necessary to leverage thesyncStoreKit2Purchases() SDK method. Call this function every time you receive a successful purchase result or auto-renewed transaction.
Subscriptions & Consumables
In case you’re using StoreKit Version 2 and selling Subscriptions and Consumables we recommend using one of these methods before finishing transactions:Android
- Check whether you have set your products up correctly. Make your GooglePlay subscriptions backwards compatible to have the best possible accuracy in Qonversion. Learn more here
- While you are using Qonversion SDKs in Analytics Mode, in-app purchases implementation is entirely on your side. Remember to consume and acknowledge purchases to attribute them to users. Otherwise, the purchases will be automatically refunded in 3 days. See the official Android Developer documentation for processing purchase details.
-
Sync data with Qonversion in your current purchase flow. Call
syncPurchases()after every purchase.
3. (Optional) Enable Server-to-Server notifications
Qonversion checks user receipts regularly and does not require server-to-server notifications from Apple or Google. Nevertheless, due to these notifications, your analytics charts, third-party integrations and webhooks will work much closer to real-time.- Guide on Apple Server-to-Server Notifications
- Guide on Google Developer Notifications
4. Set additional user attributes
Optionally, to improve attribution in Adjust, AppsFlyer, Singular, or to match Qonversion revenue events to users in third-party tools, you can share with us such attributes as User Identifier, IDFA (Identifier for Advertisers, iOS 14.5+ only) or ASID (App set ID, Android 12+ only). Please, follow this guide to learn more.What’s Next