Purchasely
Rechercher…
Observer mode
Observer mode allows you to use Purchasely alongside your existing in-app subscription flow.

When to use it?

This is a great way to:
  • Test Purchasely without changing your existing code
  • and then … smoothly migrate to Purchasely 🙂

What can you do in this mode?

In this mode, Purchasely won't interfere with your existing subscription flow.
You can:
  • Receive unified subscription events from our Webhook to trigger your automations
  • Connect this data with your marketing tools using our integrations
  • Analyse your business with the dashboards integrated in the Purchasely Console
In this mode Purchasely won't consume your purchases or acknowledge purchases made.
On iOS we won't finish the transaction of your consumables that will remain in the queue if you don't do that in your code.
On Android the transactions will be cancelled and refunded after 3 days if you do not acknowledge the transactions in your code.

General overview

Implementation

1- Start the SDK

The first thing you need to do is to call the start method passing the mode observer / PLYRunningModeObserver . View implementation details

2- Set user identifier

We need to know whenever a user is logged in or logged out to:
  • Associate the purchases to the correct user
  • Associate events to the correct user

3- Sync your purchases (Android only)

In oberver and paywallObserver modes, when a purchase or a restoration is made with your current flow, call the synchronize() method of our SDK to send the receipt to our backend. This allow us to save the receipts on our server to prepare for your migration.
Kotlin
Java
React Native
Cordova
Flutter
Purchasely.synchronize()
Purchasely.synchronize();
Purchasely.synchronize();
Purchasely.synchronize();
Purchasely.synchronize();

4- Migrate your existing subscriber base (optional)

If your app already has subscribers, you must migrate them to Purchasely to:
  • Have complete dashboards including every subscriber acquired in the past
Follow this guide to import your subscribers to Purchasely.
Copier le lien
Éditer sur GitHub
Sommaire
When to use it?
What can you do in this mode?
General overview
Implementation
1- Start the SDK
2- Set user identifier
3- Sync your purchases (Android only)
4- Migrate your existing subscriber base (optional)