Skip to main content

iOS

Step 1: Configure Web Server

The Passkey feature requires server configuration, and can only be used after coordinating and completing setup with Player Network developers.

For more information, please contact your Player Network representative.

Step 2: Configure Associated Domains

  1. To enable the Association domain feature please contact your Feature Administrator to apply for permissions.For more information, please refer to Supporting Associated Domains.

Image: Associated Domains

  1. Enable Association domain to generate a new signed profile.

  2. Configure Xcode features.In your Xcode project, under "Signing & Capabilities," enable "Associated Domains" and add webcredentials:account.levelinfinite.com to the "Domains" list.

Image: Associated_Domains_Xcode

note

Confirmed: Passkey root domain is webcredentials:account.levelinfinite.com.

The game can also use the following code to automatically add and enable "Associated Domains".

Add the following code in PostProcess:


#if UNITY_2019_3_OR_NEWER

var capManager = new UnityEditor.iOS.Xcode.ProjectCapabilityManager(projPath, entitlementsFilePath, targetGuid: targetProjectName);

#else

var capManager = new UnityEditor.iOS.Xcode.ProjectCapabilityManager(projPath, entitlementsFilePath, targetProjectName);

#endif

capManager.AddAssociatedDomains(new string[] { "your_link1", "your_link2", "your_link3" });

Step 3: Configure Passkey in Player Network SDK

note

iOS apps need to configure the Player Network SDK first. Please refer to Configure Player Network SDK for detailed steps.

In the INTLConfig.ini file, add PASSKEY_ENABLE = 1 to enable Passkey. For more details, see PASSKEY_ENABLE.

Step 4: Test the Passkey feature

After repackaging, click Passkey on the LI PASS login panel to confirm that the Passkey interface displays normally.

Image: fingerprint