English | δΈζ
This page introduces how to run the iOS sample project.
-
Make sure you have made the preparations mentioned in the prerequisites.
-
Prepare the development environment:
- Xcode 10.0 or later
- CocoaPods
-
Real iOS devices, such as iPhone or iPad.
- Quick Start
- Configure parameters Configure the following parameters in the 'keycenter. m' file:
- The Agora App ID that you get.
- The Agora App Certificate that you get.
+ (NSString *)appId {
return <#Your Agora App Id#>;
}
+ (NSString *)appCertificate {
return <#Your Agora Certificate#>;
}
See Set up Authentication to learn how to get an App ID and access token. You can get a temporary access token to quickly try out this sample project.
The Channel name you used to generate the token must be the same as the channel name you use to join a channel.
To ensure communication security, Agora uses access tokens (dynamic keys) to authenticate users joining a channel.
Temporary access tokens are for demonstration and testing purposes only and remain valid for 24 hours. In a production environment, you need to deploy your own server for generating access tokens. See Generate a Token for details.
If you have any problems or suggestions regarding the sample projects, feel free to file an issue.
- Check our FAQ to see if your issue has been recorded.
- Dive into Agora SDK Samples to see more tutorials
- Take a look at Agora Use Case for more complicated real use case
- Repositories managed by developer communities can be found at Agora Community
- If you encounter problems during integration, feel free to ask questions in Stack Overflow
The sample projects are under the MIT license.