MBurger Engagement Platform
User Guide
Headless CMS
Engagement Platform
Searchβ¦
π
MBurger Engagement Platform π
π
iOS Docs
Messages
Audience
Installation
Initialization
Tracked data
Tags
Identify a user
Location
Automation
π±
Android Docs
Messages
Audience
Automation
π·
Flutter Docs
Messages
Audience
Automation
Powered By
GitBook
Initialization
To initialize the SDK you have to add
MBAudience
to the array of plugins of
MBurger
.
import
MBurgerSwift
import
MBMessagesSwift
β
...
β
func
application
(
_
application
:
UIApplication
,
didFinishLaunchingWithOptions launchOptions
:
[
UIApplicationLaunchOptionsKey
:
Any
]
?
)
->
Bool
{
β
MBManager
.
shared
.
apiToken
=
"YOUR_API_TOKEN"
MBManager
.
shared
.
plugins
=
[
MBAudience
()]
β
return
true
}
You can set a delegate when initializing the
MBAudience
plugin, the delegate will be called when audience data are sent successfully to the sever or if the sync fails
let
audiencePlugin
=
MBAudience
(
delegate
:
[
the delegate
])
Previous
Installation
Next
Tracked data
Last modified
2yr ago
Copy link