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.
-
Add
ReplaceSohaGameAppID,GameID.SOHA-APP-IDwith App ID provided by SohaGame.
ReplaceGAME-IDwith Game Code provided by SohaGame.
-
Add app value for Facebook and Tiktok.
Replace<key>FacebookAppID</key> <string>FACEBOOK-APP-ID</string> <key>FacebookClientToken</key> <string>FACEBOOK-TOKEN</string> <key>TikTokAppID</key> <string>TIKTOK-APP-ID</string>FACEBOOK-APP-IDwith Facebook App ID provided by SohaGame.
ReplaceFACEBOOK-TOKENwith Facebook Client Token provided by SohaGame (like: SG388).
ReplaceTIKTOK-APP-IDwith Tiktok App ID name 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>fbFACEBOOK-APP-ID</string> <string>shSOHA-APP-ID</string> <string>TIKTOK-APP-ID</string> </array> </dict> </array>GOOGLE-REVERSED-CLIENT-ID, replaceGOOGLE-REVERSED-CLIENT-IDwith Google Reversed Client ID provided by SohaGame.
In the valuefbFACEBOOK-APP-ID, replaceFACEBOOK-APP-IDwith Facebook App ID provided by SohaGame.
In the valuefbSOHA-APP-ID, replaceSOHA-APP-IDwith Soha App ID provided by SohaGame.
In the valueTIKTOK-APP-ID, replaceTIKTOK-APP-IDwith Tiktok App ID provided by SohaGame.
-
Add NSAdvertisingAttributionReportEndpoint.
-
Add NSUserTrackingUsageDescription.
-
Add NSPhotoLibraryUsageDescription.
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:
- Background Modes: Remote notifications
- In-App Purchase
- Push Notifications
- Sign in with Apple