Skip to content

Configure Info

Before you begin

  • You must Install Soha SDK.
  • You have downloaded and installed the .p12 and .mobileprovision files provided by SohaGame.

Configure Info.plist file

Configure the Info.plist file with an XML snippet that contains data about your app.

  1. Right-click Info.plist, and choose Open AsSource Code.
  2. Add SohaGameAppID, GameID.

    <key>SohaGameAppID</key>
    <string>SOHA-APP-ID</string>
    <key>GameID</key>
    <string>GAME-ID</string>
    
    Replace SOHA-APP-ID with App ID provided by SohaGame.
    Replace GAME-ID with Game Code provided by SohaGame (like: SG388).

  3. Add app value for Facebook and Tiktok.

    <key>FacebookAppID</key>
    <string>FACEBOOK-APP-ID</string>
    <key>FacebookClientToken</key>
    <string>FACEBOOK-TOKEN</string>
    <key>TikTokClientKey</key>
    <string>TIKTOK-APP-ID</string>
    
    Replace FACEBOOK-APP-ID with Facebook App ID provided by SohaGame.
    Replace FACEBOOK-TOKEN with Facebook Client Token provided by SohaGame.
    Replace TIKTOK-APP-ID with Tiktok App ID name provided by SohaGame.

  4. Add LSApplicationQueriesSchemes.

    <key>LSApplicationQueriesSchemes</key>
    <array>
        <string>fbapi</string>
        <string>fb-messenger-share-api</string>
        <string>tiktokopensdk</string>
        <string>tiktoksharesdk</string>
        <string>snssdk1180</string>
        <string>snssdk1233</string>
    </array>
    

  5. Add CFBundleURLTypes.

    <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>
    
    In the value GOOGLE-REVERSED-CLIENT-ID, replace GOOGLE-REVERSED-CLIENT-ID with Google Reversed Client ID provided by SohaGame.
    In the value fbFACEBOOK-APP-ID, replace FACEBOOK-APP-ID with Facebook App ID provided by SohaGame.
    In the value fbSOHA-APP-ID, replace SOHA-APP-ID with Soha App ID provided by SohaGame.
    In the value TIKTOK-APP-ID, replace TIKTOK-APP-ID with Tiktok App ID provided by SohaGame.

  6. Add NSAdvertisingAttributionReportEndpoint.

    <key>NSAdvertisingAttributionReportEndpoint</key>
    <string>https://adjust-skadnetwork.com/</string>
    

  7. Add NSUserTrackingUsageDescription.

    <key>NSUserTrackingUsageDescription</key>
    <string> nhận dạng này sẽ được sử dụng để phân phối quảng cáo được  nhân hóa cho bạn</string>
    

  8. Add NSPhotoLibraryUsageDescription.

    <key>NSPhotoLibraryUsageDescription</key>
    <string>Cho phép ứng dụng truy cập thư viện ảnh của bạn!</string>
    

Add a GoogleService-Info.plist file

  1. Download GoogleService-Info.plist file. The download link for the GoogleService-Info.plist file is available in the .xlsx file.

  2. 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.

GoogleService-Info.plist file

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

Screenshot

  1. Select game target.
  2. Select Signing & Capabilities tab.
  3. Fill in the correct bundle id.
  4. Select the .mobileprovision file corresponding to the bundle id

Code Signin

  1. In the game target select Build Settings tab.
  2. Chose SigningCode Signing.
  3. Select the certificate file (.p12 file) that SohaGame has provided for you.

Screenshot

Configure Capabilities

Select Signing & Capabilities tab. Click + Capability button, find and add the following Capabilities:

  • In-App Purchase
  • Associated Domains: applinks:account.sohagame.vn
  • Push Notifications
  • Sign in with Apple
  • Background Modes: Remote notifications

Screenshot

1. Enable Associated Domains Capability

  • Click on the Signing & Capabilities tab.
  • Click the + Capability button in the top left corner.
  • Search for "Associated Domains" and double-click to add it.

2. Configure the Domain

  • Once the Capability is added, you will see an "Associated Domains" section:
  • Click the + (plus) button under the Associated Domains section.
  • Add your domain using the following format: applinks:account.sohagame.vn
    Note: Do not include https:// or any path in this field. Only use the prefix applinks: followed by your domain.

Screenshot