|
1 | 1 | <p align="center"> |
2 | | - <a href="https://qonversion.io" target="_blank"><img width="460" height="150" src="https://qonversion.io/img/q_brand.svg"></a> |
| 2 | + <a href="https://qonversion.io" target="_blank"><img width="360" height="150" src="https://qonversion.io/img/q_brand.svg"></a> |
3 | 3 | </p> |
4 | 4 |
|
5 | 5 | <p align="center"> |
6 | | - <a href="https://qonversion.io"><img width="660" src="https://qonversion.io/img/illustrations/charts.svg"></a></p> |
7 | | - |
8 | | -Get access to the powerful yet simple subscription analytics: |
9 | | -* Conversion from install to paying user, MRR, LTV, churn and other metrics. |
10 | | -* Feed the advertising and analytics tools you are already using with the data on high-value users to improve your ads targeting and marketing ROAS. |
11 | | - |
12 | | -[](https://pub.dev/packages/qonversion_flutter) |
13 | | - |
14 | | -## Installation |
15 | | -To use Qonversion in your Flutter app, add `qonversion` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/): |
16 | | - |
17 | | -``` |
18 | | -dependencies: |
19 | | - qonversion_flutter: ^1.1.2 |
20 | | -``` |
21 | | - |
22 | | -Run `flutter pub get` to install dependency. |
23 | | - |
24 | | -## Usage |
25 | | - |
26 | | -### Setup |
27 | | - |
28 | | -You need to configure Qonversion once at a starting point of your app. |
| 6 | + <a href="https://qonversion.io"><img width="660" src="https://qonversion.io/img/images/product-center.svg"> |
| 7 | + </a> |
| 8 | +</p> |
29 | 9 |
|
30 | | -For example, launch Qonversion in `initState` of your top level widget: |
31 | 10 |
|
32 | | -``` |
33 | | -... |
34 | | -import 'package:qonversion_flutter/qonversion.dart'; |
| 11 | +<p> |
| 12 | +Qonversion provides full in-app purchases infrastructure, so you do not need to build your own server for receipt validation. |
| 13 | +</p> |
35 | 14 |
|
36 | | -... |
37 | 15 |
|
38 | | -String _qonversionUserId; |
| 16 | +<p> |
| 17 | +Implement in-app subscriptions, validate user receipts, check subscription status, and provide access to your app features and content using our StoreKit wrapper and Google Play Billing wrapper. |
| 18 | +</p> |
39 | 19 |
|
40 | | -@override |
41 | | -void initState() { |
42 | | - super.initState(); |
43 | | - |
44 | | - _launchQonversion(); |
45 | | -} |
| 20 | +Read more in [documentation](https://docs.qonversion.io). |
46 | 21 |
|
47 | | -Future<String> _launchQonversion() async { |
48 | | - _qonversionUserId = await Qonversion.launch('YOUR_API_KEY'); |
49 | | -} |
| 22 | +[](https://pub.dev/packages/qonversion_flutter) |
| 23 | +[](http://qonversion.io) |
50 | 24 |
|
51 | | -... |
52 | | -``` |
53 | 25 |
|
54 | | -You can also specify your client side `userId` (instead of Qonversion user-id) that will be used for matching data in the third party data: |
| 26 | +## Product Center |
55 | 27 |
|
56 | | -``` |
57 | | -final userId = 'CLIENT_SIDE_USER_ID'; |
58 | | -Qonversion.launch( |
59 | | - 'YOUR_API_KEY', |
60 | | - userId: userId, |
61 | | -); |
62 | | -``` |
| 28 | +<p align="center"> |
| 29 | + <a href="https://qonversion.io"><img width="400" src="https://qonversion.io/img/images/product-center-scheme.svg"> |
| 30 | + </a> |
| 31 | +</p> |
63 | 32 |
|
64 | | -### Purchase tracking |
| 33 | +1. Application calls the purchase method to initialize Qonversion SDK. |
| 34 | +2. Qonversion SDK communicates with StoreKit or Google Billing Client to make a purchase. |
| 35 | +3. If a purchase is successful, the SDK sends a request to Qonversion API for server-to-server validation of purchase. Qonversion server unlocks permissions associated with the product. |
| 36 | +4. SDK returns control to the application with a processing state |
65 | 37 |
|
66 | | -#### Android |
67 | | -On Android you must call `Qonversion.manualTrackPurchase(skuDetails, purchase)` method on each purchase success in order to track purchases. |
68 | | -If you're not using official [in_app_purchase plugin](https://pub.dev/packages/in_app_purchase), you can use fallback method `trackPurchase` and pass it correct SkuDetails and ProductDetails Maps. |
| 38 | +## Analytics |
69 | 39 |
|
70 | | -#### iOS |
71 | | -On iOS Qonversion will track purchases automatically. |
| 40 | +Monitor your in-app revenue metrics. Understand your customers and make better decisions with precise subscription revenue data. |
72 | 41 |
|
73 | | -### Attribution |
74 | | -You need to have AppsFlyer SDK integrated in your app before starting with this integration. If you do not have Appsflyer integration yet, please use [this docs](https://pub.dev/packages/appsflyer_sdk#-readme-tab-). |
| 42 | +<p align="center"> |
| 43 | + <a href="https://qonversion.io"><img width="90%" src="https://qonversion.io/img/screenshots/desktop/mobile_subscription_analytics.jpg"> |
| 44 | + </a> |
| 45 | +</p> |
75 | 46 |
|
76 | | -On iOS you can also use Branch integration. |
| 47 | +## Integrations |
77 | 48 |
|
78 | | -Use `addAttributionData(data, provider, userId)` method to pass attribution data dictionary: |
79 | | -``` |
80 | | -Qonversion.addAttributionData( |
81 | | - data, |
82 | | - QAttributionProvider.appsFlyer, |
83 | | - 'USER_ID', |
84 | | -) |
85 | | -``` |
| 49 | +Share your iOS and Android in-app subscription data with your favorite platforms. |
86 | 50 |
|
87 | | -## License |
88 | 51 |
|
89 | | -Qonversion SDK is available under the MIT license. |
| 52 | +<p align="center"> |
| 53 | + <a href="https://qonversion.io"><img width="500" src="https://qonversion.io/img/illustrations/pic-integration.svg"> |
| 54 | + </a> |
| 55 | +</p> |
0 commit comments