Configure Info¶
Before you begin¶
- You must Install Soha SDK.
- You have downloaded and installed the
.p12and.mobileprovisionfiles provided by SohaGame.
Configure Info.plist file¶
Configure the Info.plist file with an XML snippet that contains data about your app.
Right-click Info.plist, and choose Open As ▸ Source Code.
SDK and Service Configuration¶
Add the following keys to configure the SohaGame SDK and its integrated services.
-
Add
ReplaceSohaGameAppID,GameID.SOHA-APP-IDwith App ID provided by SohaGame.
ReplaceGAME-IDwith GameID provided by SohaGame (like: SG388).
-
Add the Facebook app configuration.
Replace<key>FacebookAppID</key> <string>FACEBOOK-APP-ID</string> <key>FacebookClientToken</key> <string>FACEBOOK-TOKEN</string>FACEBOOK-APP-IDwith Facebook App ID provided by SohaGame.
ReplaceFACEBOOK-TOKENwith Facebook Client Token provided by SohaGame.
-
Add LSApplicationQueriesSchemes.
-
Add CFBundleURLTypes.
In the value<key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLSchemes</key> <array> <string>GOOGLE-REVERSED-CLIENT-ID</string> <string>fb{FACEBOOK_APP_ID}</string> <string>sh{SOHA_APP_ID}</string> </array> </dict> </array>GOOGLE-REVERSED-CLIENT-ID, replaceGOOGLE-REVERSED-CLIENT-IDwith Google Reversed Client ID provided by SohaGame.
In the valuefb{FACEBOOK_APP_ID}, replace{FACEBOOK_APP_ID}with the Facebook App ID provided by SohaGame. Keep thefbprefix and remove the braces. For example, if the App ID is123456789, usefb123456789.
In the valuesh{SOHA_APP_ID}, replace{SOHA_APP_ID}with the Soha App ID provided by SohaGame. Keep theshprefix and remove the braces. For example, if the App ID is123456789, usesh123456789.
-
Add NSAdvertisingAttributionReportEndpoint.
Permission Usage Descriptions¶
Add the following usage descriptions to explain why the app requests each permission. Tracking is used for personalized advertising. Photo library, microphone, and camera access support the issue reporting feature.
-
Add NSUserTrackingUsageDescription.
-
Add NSPhotoLibraryUsageDescription.
-
Add NSMicrophoneUsageDescription.
-
Add NSCameraUsageDescription.
Adding AdServices.framework¶
- Navigate to the
Build Phasestab. - Expand the
Link Binary With Librariessection. - Click the "+" button at the bottom left of the section.
- In the search bar, type
AdServicesand selectAdServices.frameworkfrom the list. - Click
Add. - Once added, locate
AdServices.frameworkin the list and click on the Status column next to it, change it fromRequiredtoOptional.
Add a GoogleService-Info.plist file¶
-
Download GoogleService-Info.plist file. The download link for the GoogleService-Info.plist file is available in the .xlsx file.
-
Move your config file into the root of your Xcode project. If prompted, select to add the config file to all targets. Make sure the config file name is not appended with additional characters.
Configure Signing¶
Bunlde ID & Provisoning Profile¶
Bundle ID will be provided by SohaGame, you need to configure the correct Bundle ID along with Provisioning Profile
- Select game target.
- Select Signing & Capabilities tab.
- Fill in the correct bundle id.
- Select the
.mobileprovisionfile corresponding to the bundle id
Code Signin¶
- In the game target select Build Settings tab.
- Chose Signing ▸ Code Signing.
- Select the certificate file (
.p12file) that SohaGame has provided for you.
Configure Capabilities¶
Select Signing & Capabilities tab. Click + Capability button, find and add the following Capabilities:
- In-App Purchase
- Push Notifications
- Sign in with Apple
Configure SceneDelegate¶
Follow SceneDelegate to set up the scene lifecycle and forward login URL callbacks to SohaSDK.



