Integrate Flock’s referral and rewards platform into your iOS app with the official FlockSDK. This guide covers setup, configuration, and usage for Swift-based iOS apps.
FlockSDK-iOS enables seamless integration of Flock referral and rewards into your iOS applications. Effortlessly build powerful referral programs and track customer engagement in minutes.
https://github.com/Flock-Solutions/FlockSDK-iOS.git
Call Flock.initialize
once, ideally in your AppDelegate
or early in your app’s startup:
Identify the current user (after login or at app start):
New: Use
addPlacement(placementId:)
instead ofopenPage(type:)
for opening campaign pages. Each campaign page now has a uniqueplacementId
for more robust and future-proof integration.
A placement renders a Flock referral page within your app, making it easy to prompt users to share and participate in your referral program.
openPage(type:)
method is now deprecated and will be removed in a future release.openPage(type:)
to addPlacement(placementId:)
.Present the referral page anywhere in your app:
referrer
: Standard referral page for existing usersinvitee
: For invited usersinvitee?state=success
: Invitee success stateonClose
: Called when the page is closedonSuccess
: Called on successful referral code submissiononInvalid
: Called for invalid referral code submissionFlockSDK-iOS is released under the MIT License.
Happy referring 🚀
Integrate Flock’s referral and rewards platform into your iOS app with the official FlockSDK. This guide covers setup, configuration, and usage for Swift-based iOS apps.
FlockSDK-iOS enables seamless integration of Flock referral and rewards into your iOS applications. Effortlessly build powerful referral programs and track customer engagement in minutes.
https://github.com/Flock-Solutions/FlockSDK-iOS.git
Call Flock.initialize
once, ideally in your AppDelegate
or early in your app’s startup:
Identify the current user (after login or at app start):
New: Use
addPlacement(placementId:)
instead ofopenPage(type:)
for opening campaign pages. Each campaign page now has a uniqueplacementId
for more robust and future-proof integration.
A placement renders a Flock referral page within your app, making it easy to prompt users to share and participate in your referral program.
openPage(type:)
method is now deprecated and will be removed in a future release.openPage(type:)
to addPlacement(placementId:)
.Present the referral page anywhere in your app:
referrer
: Standard referral page for existing usersinvitee
: For invited usersinvitee?state=success
: Invitee success stateonClose
: Called when the page is closedonSuccess
: Called on successful referral code submissiononInvalid
: Called for invalid referral code submissionFlockSDK-iOS is released under the MIT License.
Happy referring 🚀