Before getting started

OpenFoodFacts Terms of use

Passio Nutrition-AI SDK added data from Open Food Facts (https://en.openfoodfacts.org/). Each food that contains data from Open Food Facts will be marked by public var isOpenFood: Bool. In case you choose to use foods that are marked by isOpenFood = true you agree to abide by the terms of the Open Food Facts license agreement (https://opendatacommons.org/licenses/odbl/1-0) and their terms of use (https://world.openfoodfacts.org/terms-of-use) and you will have to add to the UI the following license copy:

"This record contains information from Open Food Facts (https://en.openfoodfacts.org), which is made available here under the Open Database License (https://opendatacommons.org/licenses/odbl/1-0)"

If you don't wish to display the Open Food Facts license somewhere in your app, it is your responsibility to ignore results where isOpenFood = true.

SDK key

To use the SDK please make sure you receive your SDK license key from Passio. The SDK WILL NOT WORK without a valid SDK key.

Proxy URL

If you want a layer of security, where you can authenticate the license and fetch the token on your backend, you don't need the SDK key.

In that case, the SDK will communicate with your backend, and your backend will proxy the requests to Passio's servers, adding the access token to the header. This way, the license keys and tokens are never shared in the app code.

You need to provide following things when configuring the SDK:

  • Proxy URL - Base url of the target proxy endpoint

  • Proxy headers - Required headers to all of the requests

Request Access to the GitHub repository

You will have to download the latest releases from the link below. The command "git clone" WILL NOT download the PassioNutritionAISDK.xcframework. https://github.com/Passiolife/Passio-Nutrition-AI-iOS-SDK-Distribution/releases. Download the PassioSDKQuickStart.zip or the PassioSDKFullDemo.zip and either install the framework using the Swift Package Manager directions or copy the PassioNutritionAISDK.xcframework to your project. Make sure you have followed the directions in the README files.

Minimum Requirements

In order to use the PassioSDK your app needs to meet the following minimal requirements:

  • The SDK will only run or compile on iOS 13 or newer.

  • Passio SDK can only be used on a device and will not run on a simulator

  • The SDK requires access to iPhone's camera

  • Weight/Volume estimation will run only on iPhones with Dual Wide Camera (not on DualCamera). It will not run on the models below.

    • iPhone 11 Pro & Pro Max

    • iPhone 12 mini, Pro & Pro Max

If at any point you need help from the Passio team, please reach out to us at support@passiolife.com

Last updated