Integration
Connect the app's miles® SDK to all of your app's features to start driving your users and build retention.
iOS Integration

You have the app's miles banner up and running.
🚩
Now you need to integrate the SDK deeper into your application so that your user can:
- understand how the program works.
- discover all the functionalities that you slaved away at developing !
- be rewarded for consistently using your application's main features.
🧠
🔎
🥕
Skip to the Connect section if you intend to have everyone participate in the program by default

An onboarding example
The first thing that the user will see when clicking on the app's miles banner is the onboarding.
This onboarding has two purposes:
- Present and explain the program🎓
- Ask the user their consent to take part in the program❓
There are up to 3 buttons on the onboarding, and you must attach a listener in order to redirect the user depending on their input.
The input of the user will affect the variable
OPT_IN
in the following way:
(default: APM_DEVICE_OPT_IN_NOT_SET)
- OK:👍
APM_DEVICE_OPT_IN_ACCEPT