App ID | Also known as the “Company Marker”, assigned by ASAPP. |
---|---|
API Host Name | The fully-qualified domain name used by the SDK to communicate with ASAPP’s API. Provided by ASAPP and subject to change based on the stage of implementation. |
Region Code | The ISO 3166-1 alpha-2 code for the region of the implementation, provided by ASAPP. |
Supported Languages | Your app’s supported languages, in order of preference, as an array of language tag strings. Strings can be in the format “{ISO 639-1 Code}-{ISO 3166-1 Code}” or “{ISO 639-1 Code}”, such as “en-us” or “en”. Defaults to [“en”]. |
Client Secret | This can be an empty or random string* until otherwise notified by ASAPP. |
User Identifier | A username or similar value used to identify and authenticate the customer, provided by the Customer Company. |
Authentication Token | A password-equivalent value, which may or may not expire, used to authenticate the customer that is provided by the Customer Company. |
.xcframework
with and without bitcode in dynamic and static flavors. If in doubt, ASAPP recommends that you use the dynamic .xcframework
with bitcode.
Add your chosen flavor of the framework to the “Frameworks, Libraries, and Embedded Content” section of your target’s “General” settings.
ASAPPResources.bundle
to your target’s “Frameworks, Libraries, and Embedded Content” and then include it in your target’s “Copy Bundle Resources” build phase.
The SDK allows a customer to take and upload photos, unless these features are disabled through configuration. Since iOS 10, Apple requires descriptions for why your app uses the photo library and/or camera, which will be displayed to the customer. If you haven’t already, you’ll need to add these descriptions to your app’s Info.plist
.
Info.plist
via Xcode’s plist editor, the description keys are “Privacy - Camera Usage Description” and “Privacy - Photo Library Usage Description”.Info.plist
via a text editor, the keys are “NSPhotoLibraryUsageDescription” and “NSCameraUsageDescription”.brew install gpg
gpg --import asapp_public.gpg
gpg --verify <-sdk-filename>.sig <sdk-filename>
ASAPP provides the signature alongside the SDK in each release.
application(_:didFinishLaunchingWithOptions…)
. Please see the User Authentication section for details about how to authenticate an identified user.
ForPresenting
method instead: