With the latest Pushwoosh SDK you can now track in-app purchases in your applications out of the box, which is a really powerful marketing tool. You can segment your audience based on this criterion, and aim push notifications at non-paying users to convert them into paying ones. Or, you can upsell your products to those users, who have already bought specific products in your application during the chosen period of time.
Data about in-apps is gathered in our new default tag values:
- In-App Purchase – The total amount of money spent on in-app purchases for the device
- Last In-App Purchase Date – The date of the last in-app purchase made on the device
- In-App Product – Names of in-app products that were purchased on the device
Setting up an Autopush based on in-apps and device types is easy – the upselling message will be sent to iPhone users who have spent between $10 and $25 on in-apps, one week after they have made the latest purchase.
Currently tracking in-app purchases is available for the following platforms:
iOS
Native and all third-party frameworks
There’s no additional coding required from you – all in-app purchases are tracked by Pushwoosh SDK automatically when a user buys a product!
Android
Native apps only
In order to track in-app purchases you should call the trackInAppRequest
method of the PushManager class when a user buys a product:
price
– price of the product
currency
– currency of the price (ex: “USD”)
purchaseTime
– time of the purchase (ex: new Date())
Example:
Windows Phone
When a user buys a product, call the following method:
price
– price of the product
currency
– currency of the price
Example: