Expo
If you are using Expo to build your app.
External Dependencies
Steps
1
2
Configure the Sentiance Expo config plugin
{
"expo": {
"plugins": [
"...": "...",
[
"@sentiance-react-native/core",
{
"android": {
// Optional: customize the foreground service notification
"notification": {
"title": "Your App",
"text": "Running in the background",
"channelId": "sentiance",
"channelName": "Sentiance",
"icon": "notification_icon",
"id": 1
}
}
}
]
],
"ios": {
"...": "...",
// Required: location & motion permission descriptions
"infoPlist": {
"NSLocationAlwaysAndWhenInUseUsageDescription": "This app uses your location to provide insights.",
"NSLocationWhenInUseUsageDescription": "This app uses your location to provide insights.",
"NSLocationAlwaysUsageDescription": "This app uses your location to provide insights.",
"NSMotionUsageDescription": "This app uses motion data to detect your transportation mode.",
}
}
}
}Last updated