This Repo has an example app demonstrating usage of the capsule flutter plugin.
Before getting started, you'll need a Capsule API Key. Get one here
- Clone this repo locally
git clone git@github.com:capsule-org/flutter-example.git - In the root directory, run
flutter pub get - Create a
.envfile in the root directory. You can copy the.env.exampleand modify, it includes all of the requried environment variables to run the app.
Note Valid environments are dev, sandbox, beta, and prod
Note: If you haven't done so already, please reach out to the capsule team for a beta api key to start testing!
- open
ios/Runner.xcworkspacein XCode - select
Runnerunder TARGETS - select
Signing & Capabilities - set the team to your team and give the example app a unique bundle identifier
Note: you will need an organization level account, personal development accounts do not allow for associated domains
Note: please submit the appID to the capsule team. This will be in the following format: TEAM_ID.bundleIdentifier
- Start an iOS simulator. If using VSCode, go to the run and debug tab
- Click play button, which will allow you to debug if desired
Alternatively, you can use flutter run
Need any additional help? Get in touch via the beta form or support@usecapsule.com
