Add Choicely SDK to your project
Use Swift Package Manager to install and manage Choicely dependencies.- In Xcode, with your app project open, navigate to File > Add Packages.
-
When prompted, add the Choicely SDK repository:
-
Choose available Choicely modules:
ChoicelyCore- Core SDK functionality + App Realtime UpdatesChoicelyFirebase- Social Login, Push Notifications, AnalitycsChoicelyMap- Location, Interactive Map, Google Maps IntegrationChoicelyShop- In-App Purchases, Subscriptions, Paid VotesDetailed information about setup, features and module usage can be found in the corresponding menu sections: ChoicelyFirebase, ChoicelyMap, ChoicelyShop.
Import and initialize ChoicelySDK
-
Import the ChoicelyCore module in your App struct or UIApplicationDelegate:
-
Initialize SDK with
ChoicelySDK.initialize(...)method.
For testing purposes, you can use the SDK Demo app key:
Y2hvaWNlbHktZXUvYXBwcy9kS1lHUUtUbWREa1pRb1ltZFRiZQThe SDK Demo app itself is available on github: choicely-sdk-demoAlternatively, you can create your own app using Choicely Builder: How to create apps with Choicely
Set the initial view and present it
-
Use the
ChoicelySplashViewControllerorChoicelySplashViewas the rootUIViewController/SwiftUI.Viewfor your app: - That’s it! You’re ready to launch the app.
To enable Push Notifications, Social Login and Analitycs go to the next ChoicelyFirebase section.
