There could be cases when a certain food is not present in Passio's Nutritional Database. The standard practice in that case would be to guide the users through a creation of user created food items. These items are usually only accessible for that particular user, but there is an API that can be used to notify Passio of such items.
Using the fun submitUserCreatedFoodItem
, the app can notify Passio of user created foods.
PassioFoodItems submitted using this API go into our verification queue, and after their data has been verified by our nutrition data experts, they become available in the Nutritional Database.
On the other hand, there could be food items that have incorrect or outdated data. For these cases, the SDK provides an API to report such items, so that our data team can update them in the Nutritional Database.
To report incorrect data in a PassioFoodItem, reportFoodItem
can be used. The refCode of the food item must by supplied.
Add a button when displaying the food item to report incorrect data.
Show a form where users can add their feedback as well as provide the product code (barcode) of the item.
Upon clicking the "Report" button, invoke the reportFoodItem
function.