Deprecated. Please use https://github.com/qonversion/capacitor-plugin
Plugin to allow users in-app purchases and subscriptions via the use of Qonversion
npm install capacitor-plugin-qonversion
npx cap sync
launchWithKey(...)
setDebugMode()
identify(...)
logout()
setUserProperty(...)
storeSDKInfo(...)
checkPermissions()
checkTrialIntroEligibilityForProductIds(...)
purchase(...)
restore()
syncPurchases()
experiments()
products()
offerings()
addAttributionData(...)
- Interfaces
- Enums
Here we define the methods in the QonversionPluginPlugin.java that can be accessed by the application.
launchWithKey(options: LaunchOptions) => Promise<Result<LaunchResult>>
Launch the Qonversion instance with the provided projectKey
, optionally enable observerMode
.
Param | Type |
---|---|
options |
LaunchOptions |
Returns: Promise<Result<LaunchResult>>
setDebugMode() => Promise<void>
Set the flag to distinguish sandbox and production users.
identify(options: IdentifyOptions) => Promise<void>
Param | Type |
---|---|
options |
IdentifyOptions |
logout() => Promise<void>
setUserProperty(options: PropertyOptions) => Promise<void>
Param | Type |
---|---|
options |
PropertyOptions |
storeSDKInfo(options: SDKInfo) => Promise<void>
Param | Type |
---|---|
options |
SDKInfo |
checkPermissions() => Promise<Result<PermissionResult[]>>
Check the user receipt and return all the associated permissions.
Returns: Promise<Result<PermissionResult[]>>
checkTrialIntroEligibilityForProductIds(options: ProductIds) => Promise<Result<EligibilityResult[]>>
Check if the user is eligible for an introductory offer of the products.
Param | Type |
---|---|
options |
ProductIds |
Returns: Promise<Result<EligibilityResult[]>>
purchase(options: ProductId) => Promise<Result<PermissionResult[]>>
Perform a purchase for the product.
Param | Type |
---|---|
options |
ProductId |
Returns: Promise<Result<PermissionResult[]>>
restore() => Promise<Result<PermissionResult[]>>
Returns: Promise<Result<PermissionResult[]>>
syncPurchases() => Promise<void>
experiments() => Promise<Result<any[]>>
Returns: Promise<Result<any[]>>
products() => Promise<Result<ProductResult[]>>
Retrieve a list of available products.
Returns: Promise<Result<ProductResult[]>>
offerings() => Promise<Result<OfferingResult[]>>
Retrieve a list of available offerings.
Returns: Promise<Result<OfferingResult[]>>
addAttributionData(options: AttributionData) => Promise<any>
Param | Type |
---|---|
options |
AttributionData |
Returns: Promise<any>
Prop | Type |
---|---|
data |
T |
Prop | Type |
---|---|
uid |
string |
timestamp |
number |
products |
ProductResult[] |
permissions |
PermissionResult[] |
userProducts |
ProductResult[] |
Prop | Type |
---|---|
id |
string |
storeId |
string |
type |
number |
offeringId |
string |
duration |
number |
trialDuration |
number |
storeProduct |
SkuResult |
prettyPrice |
string |
Prop | Type |
---|---|
description |
string |
freeTrialPeriod |
string |
iconUrl |
string |
introductoryPrice |
string |
introductoryPriceAmountMicros |
number |
introductoryPriceCycles |
number |
introductoryPricePeriod |
string |
originalJson |
string |
originalPrice |
string |
originalPriceAmountMicros |
number |
price |
string |
priceAmountMicros |
number |
priceCurrencyCode |
string |
sku |
string |
subscriptionPeriod |
string |
title |
string |
type |
string |
hashCode |
number |
toString |
string |
Prop | Type |
---|---|
id |
string |
associatedProduct |
string |
active |
boolean |
renewState |
'NonRenewable' | 'Unknown' | 'WillRenew' | 'Canceled' | 'BillingIssue' |
startedTimestamp |
number |
expirationTimestamp |
number |
key |
string |
Prop | Type |
---|---|
key |
string |
observerMode |
boolean |
Prop | Type |
---|---|
userID |
string |
Prop | Type |
---|---|
key |
string |
value |
string |
Prop | Type |
---|---|
sourceKey |
string |
source |
string |
sdkVersionKey |
string |
sdkVersion |
string |
Prop | Type |
---|---|
productId |
string |
status |
string |
key |
string |
Prop | Type |
---|---|
products |
string[] |
Prop | Type |
---|---|
productId |
string |
Prop | Type |
---|---|
id |
string |
main |
boolean |
tag |
number |
offeringProducts |
ProductResult[] |
Prop | Type |
---|---|
data |
any |
provider |
AttributionSource |
Members | Value |
---|---|
AppsFlyer |
0 |
Branch |
1 |
Adjust |
2 |