Qonversion

The Qonversion Inc. Developer Hub

Welcome to the Qonversion Inc. developer hub. You'll find comprehensive guides and documentation to help you start working with Qonversion Inc. as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

Using the SDKs

This guide is for using Qonversion in the Infrastructure mode. The Infrastructure mode allows you to handle in-app purchases using the Qonversion SDK, including making purchases, handling subscription entitlements, restoring purchases.
If you are looking to use Qonversion for analytics and integrations only and do not want to make any changes in your existing purchases flow, please refer to the Observer mode guide. You can check the key features of the Infrastructure and the Observer modes here.

Launching

Import the Qonversion SDK in your module that is responsible for launching third-party dependencies:

import Qonverison
#import "Qonversion.h"
import com.qonversion.android.sdk.Qonversion;
import com.qonversion.android.sdk.Qonversion
import 'package:qonversion_flutter/qonversion_flutter.dart';
import Qonversion from 'react-native-qonversion';
using QonversionUnity;

Initialize the SDK:

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
  
    Qonversion.launch(withKey: "projectKey")
    return true
}
#import "Qonversion.h"
  
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [Qonversion launchWithKey:@"projectKey"];
    
    return YES;
}
public class App extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        Qonversion.launch(this, "projectKey", false);
    }
}
public class App : Application {
    override fun onCreate() {
        super.onCreate()
        Qonversion.launch(this, "projectKey", false)
    }
}
QLaunchResult _qLaunchResult;

@override
void initState() {
  super.initState();
  
  _launchQonversion();
}

Future<void> _launchQonversion() async {
  _qLaunchResult = _qLaunchResult = await Qonversion.launch(
      'projectKey',
      isObserveMode: false,
    );

}
Qonversion.launchWithKey('projectKey', false);
public class QonversionLauncher : MonoBehaviour
{
    private void Start()
    {
        Qonversion.Launch("projectKey", debugMode);
    }
}

Get your Qonversion Project Key

Set User ID

To match the events from Qonversion to users on other platforms, you need to set the same user ID on both of them:

Qonversion.setUserID("yourSideUserId")
[Qonversion setUserID:@"yourSideUserId"];
Qonversion.setUserID("yourSideUserID");
Qonversion.setUserID("yourSideUserID")
Qonversion.setUserId('yourSideUserId')
Qonversion.setUserId('yourSideUserID');
Qonversion.Launch("projectKey", "yourSideUserID");

The user ID improves event delivery rate to the platforms where event attribution is not exclusively based on IDFA or GAID.

We recommend using UUID as a standard for user identification.

let userID = UUID().uuidString
NSString *userID = [[NSUUID UUID] UUIDString];
String randomUUIDString = UUID.randomUUID().toString();
val randomUUID = UUID.randomUUID().toString()
import 'package:uuid/uuid.dart';

final userID = Uuid().v1();
import { v4 as uuidv4 } from 'uuid';
const userID = uuidv4();
var userID = Guid.NewGuid().ToString();

Updated about a month ago



Using the SDKs


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.