- To start using Dapi APIs, log in or create an account at Dashboard.
- Follow instructions about getting your AppKey.
Important! Using the SDK requires configuring a backend server. Read more about the flow and requirements: Server set-up for SDKs. For development purposes, the server can be easily set up on your local machine.
Once the server runs successfully, make sure to add the host URL as
App Server URLon the Dapi Dashboard
Now the SDK will automatically know where to send its requests!
- Open your build.gradle file
- Copy the value of applicationId
- Open your app in the Dashboard.
- Select your Application → Go to App Settings
- Click on the Bundle IDs + icon, paste the Bundle ID value, and click Submit
- Open your .xcodeproj file
- Copy the value of Bundle Identifier
- Add it to the dashboard too If it is different from your Android applicationId
To integrate Dapi into your Flutter project, install dapi using the following command.
flutter pub add dapi
- Import Dapi
- Start the SDK
await Dapi.start( "#app_key#", "#client_user_id#", ) );
app_keywith your appKey from the first step.
ClientUserIDis used to distinguish between different end-users. The value for
clientUserIDneeds to be set by you. We recommend setting
clientUserIDto your actual user ID that you use to distinguish between users.
Clone this repository, run the application and see Dapi in action.
Updated 4 months ago