Appwrite only accepts requests from registered platforms. Register every app and web domain to prevent CORS errors and blocked SDK requests.
Android and iOS apps#
If you followed the app setup pages, these are already registered. Check under Integrations & Platforms (or Apps) that all of them are listed:
| App | Example package name |
|---|---|
| Customer App | com.yourcompany.kiko_mart_user |
| Store App | com.yourcompany.kiko_mart_store |
| Delivery App | com.yourcompany.kiko_mart_delivery |
To add a missing one, click + Add Platform and enter the package name.
Web domains#
- In the Appwrite Console, go to Integrations & Platforms → + Add Platform → Web.
-
Add each domain your web apps run on, e.g.
store.yourdomain.comanduser.yourdomain.com.
Enter the hostname only, without https:// and without a trailing slash. Registering the Customer App's web domain is required for the forgot password feature to work.
Configuration overview#
Which values each app needs in its appwrite_config.dart:
| Constant | Store | Customer | Delivery |
|---|---|---|---|
apiEndpoint, projectId, databaseId |
✓ | ✓ | ✓ |
apiKey |
✓ | ✓ | |
postsBucketId |
✓ | ✓ | ✓ |
messagingProviderId |
✓ | ✓ | ✓ |
notificationFunctionId |
✓ | ✓ | ✓ |
broadCastTopicId, storeAdminTopicId |
✓ | ✓ | ✓ |
stripePaymentFunctionId |
✓ | ||
allDeliverymanTopicId |
✓ |
