User customisation
Mealz can provide a personalized experience for customers. To achieve this we propose two solutions:
- Preferences: Locally stored Actionable without customer consent by the retailer
- Profiling : Back hosted tastes Can be disabled by the customer
note
These two solutions are GDPR-compliant
Preferences
The preferences uses the native Android preference to make them persistent.
To enable this feature you need to provide a context and change the Mealz preference's configuration flag to true:
Example with Jetpack Compose :
import ai.mealz.core.Mealz
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
Column {
// EnablePreference show preference button on Catalog
Catalog(this@MainActivity).apply { enablePreference(true) }.Content()
}
}
}
}
Profiling
Mealz offers to your customer a fully personalized experience based on their tastes. Our AI will learn from the customer's choices and suggest more and more specific recipes and product.
This feature can be disabled by the customer if they wish.
To do this, we expose this function:
// file MealzManager.kt
import ai.mealz.core.Mealz
class MealzManager(val appContext: Context) {
// allow profiling -> can we use your personal data to provide custom recipes?
Mealz.user.setProfilingAllowance(allowance: true)
}
Like recipe
You can disable the Like feature as well
// file MealzManager.kt
import ai.mealz.core.Mealz
class MealzManager(val appContext: Context) {
// allow users to heart recipes
Mealz.user.setEnableLike(isEnable: true)
}
note
The like feature will be set to TRUE by default