https://github.com/wingify/vwo-flutter-basic-app
Demo app for A/B testing
https://github.com/wingify/vwo-flutter-basic-app
Last synced: 3 months ago
JSON representation
Demo app for A/B testing
- Host: GitHub
- URL: https://github.com/wingify/vwo-flutter-basic-app
- Owner: wingify
- License: mit
- Created: 2023-04-21T13:08:08.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-24T06:30:37.000Z (about 2 years ago)
- Last Synced: 2025-01-08T18:45:09.856Z (5 months ago)
- Language: C++
- Size: 270 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# VWO Flutter Basic App
This Flutter test app allows you to A/B Test your Flutter integration.
## Requirements
* Dart sdk version ```>=2.12.0 <3.0.0```
* Flutter version ```>=3.0.0```## Documentation
Refer [Official VWO Documentation](https://developers.vwo.com/reference#flutter-guide)
## Basic Usage

**Instantiation**
SDK provides a method to instantiate a VWO client as an instance. The method accepts an apiKey and an object to configure the VWO client.
The required parameter for instantiating the SDK is apiKey.PLEASE NOTE: RESPECTIVE IMPLEMENTATION IS ONLY FOR IOS FOR TESTING PERSPECTIVE.
```dart
VWOConfig vwoConfig = VWOConfig(userId:"", optOut: false, disablePreview: true);VWO.launch(ios_apiKey, vwoConfig: vwoConfig); //REPLACE "ios_apiKey" here
```**Get Variation Name**
```dart
VWO.getVariationNameForTestKey("Campaign_Key") //REPLACE "Campaign_Key" here
.then((value) => { print("variation name selected -> ${value}")});```
**Trigger Goal**
```dart
//custom-goal
VWO.trackConversion("Campaign_Goal"); //REPLACE "Campaign_Goal" here
```## Credentials
This SDK requires an app key. You can sign up for an account at [VWO](https://vwo.com).
Once there, you can add a new Android/iOS App, and use the generated app key in the app.## Setting up VWO account
* Sign Up for VWO account at https://vwo.com
* Create a new android app from create menu
* Use the app generated app key, while integrating SDK into android/iOS app.
* Create and run campaigns.## Code of Conduct
[Code of Conduct](https://github.com/wingify/vwo-flutter-basic-app/blob/master/CODE_OF_CONDUCT.md)
## License
[Apache License, Version 2.0]( https://github.com/wingify/vwo-flutter-basic-app/blob/master/LICENSE)
Copyright 2021 Wingify Software Pvt. Ltd.