Initialization (iOS SDK)
- Andrey Veprikov
Owned by Andrey Veprikov
Initialize SDK object and use it anywhere in your application.
Remember to initialize SDK only once on application launch. Don't forget to replace the %YOUR_STORE_KEY% text with the current store key from your PersonaClick account.
import PersonaClick ... var sdk = createPersonalizationSDK(shopId: "%YOUR_STORE_KEY%")
Or with completion to handle problems:
import PersonaClick ... var sdk = createPersonalizationSDK(shopId: "%YOUR_STORE_KEY%", { (error) in print(error) })
Parameters
Name | Type | Requirement | Description |
---|---|---|---|
shopId | string | required | The current store key from the PersonaClick account. |
userEmail | string | optionally | User Email. |
userPhone | string | optionally | User Phone. |
userLoyaltyId | string | optionally | The Loyalty Program user ID (loyalty card). |
autoSendPushToken | boolean | optionally | The true value (the default) allows the token to be requested, and false disallows it. |
Related Pages
-
Page:
-
Page:
-
Page:
-
Page:
-
Page:
-
Page:
-
Page:
Copyright 2018-2024 PersonaClick