Open michaelroland opened 4 years ago
Well, basically the onboarding config is set after the onboarding of the app itself. We wanted to avoid that we start the whole thing before the user accepted the terms of use.
Registration is the part where you actually got an nov20 id from the backend.
Ack, shouldn't the SDK then provide a method that allows the app to confirm completion of the onboarding to store that in the shared pref?
Well, the onboarded field in the config is public, so basicallly the app can set it anytime.
val novidSdk = NovidSdk.getInstance()
novidSdk.getConfig().onboarded = true
May not be the best API for that, but we were quite limited with time 😄
config.onboarded
is required to betrue
in order for the automatic discovery to start. However, that configuration value is never set by the SDK and the default/initial value isfalse
.Is this meant to be set from the app implementation?
What is the difference between
config.onboarded
andconfig.registered
? The latter is set once a user was successfully registered. Were these meant to be the same thing?