Projects
Test Mode for Development
Learn how to use Test Mode to bypass Apple DeviceCheck validation during development and testing of your iOS applications with Proxed.AI.
Overview
Test Mode is a development feature that allows you to bypass Apple DeviceCheck validation when testing your iOS applications with Proxed.AI. This simplifies the development and testing process by removing the need for DeviceCheck authentication in non-production environments.
Benefits of Test Mode
- Simplified Development: Test your API integration without setting up DeviceCheck
- Faster Prototyping: Quickly iterate on your application without authentication hurdles
- Controlled Testing: Use a dedicated test key for non-production environments
- Seamless Transition: Switch between test and production modes without code changes
How Test Mode Works
When Test Mode is enabled for a project:
- A unique test key is generated for your project
- Requests with the
x-proxed-test-key
header containing this key will bypass DeviceCheck validation - All other security measures and request validation remain active
- You can toggle Test Mode on/off without affecting your production configuration
- The test key is automatically regenerated each time Test Mode is toggled, ensuring security
Enabling Test Mode
- Navigate to your project settings in the Proxed.AI Dashboard
- Select the project you want to configure
- Find the "Test Mode" card in the project settings
- Toggle the switch to enable Test Mode
- Copy the generated test key for use in your application
Using Test Mode in Your Applications
Swift Example
Security Considerations
While Test Mode is convenient for development, keep these security considerations in mind:
- Not for Production: Test Mode should never be enabled for production environments
- Protect Your Test Key: Although less sensitive than production keys, your test key should still be kept secure
- Limited Testing: Use Test Mode only for functional testing, not for security testing
- Regular Auditing: Periodically review your projects to ensure Test Mode is disabled for production projects
Troubleshooting
If you encounter issues with Test Mode:
- Verify that Test Mode is enabled for your project
- Confirm you're using the correct test key in your
x-proxed-test-key
header - Check that your project ID in the API endpoint is correct
- Ensure your request format matches the expected API format
For additional assistance, contact the Proxed.AI support team.