capacitor-plugin-qonversion
NB: Code for iOS has not been done for this project yet.
NB: Been away for a year but updates and fixes will resume shortly
Plugin to allow users in-app purchases and subscriptions via the use of Qonversion
npm install capacitor-plugin-qonversion
npx cap sync
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
.
Returns: Promise<Result <LaunchResult >>
setDebugMode ( ) = > Promise < void >
Set the flag to distinguish sandbox and production users.
identify ( options : IdentifyOptions ) = > Promise < void >
logout ( ) = > Promise < void >
setUserProperty ( options : PropertyOptions ) = > Promise < void >
storeSDKInfo ( options : SDKInfo ) = > Promise < void >
checkPermissions ( ) = > Promise < Result < PermissionResult [ ] > >
Check the user receipt and return all the associated permissions.
Returns: Promise<Result <PermissionResult[]>>
checkTrialIntroEligibilityForProductIds(...)
checkTrialIntroEligibilityForProductIds ( options : ProductIds ) = > Promise < Result < EligibilityResult [ ] > >
Check if the user is eligible for an introductory offer of the products.
Returns: Promise<Result <EligibilityResult[]>>
purchase ( options : ProductId ) = > Promise < Result < PermissionResult [ ] > >
Perform a purchase for the product.
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 >
Returns: Promise<any>
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
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[]
Members
Value
AppsFlyer
0
Branch
1
Adjust
2