Skip to content

Commit

Permalink
feat: Translate Android persistent notification for geolocation track…
Browse files Browse the repository at this point in the history
…ing and add icon
  • Loading branch information
zatteo committed Nov 10, 2023
1 parent 3c14929 commit 19dd83a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/app/domain/geolocation/tracking/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ export const startTracking = async () => {
message: t(
'services.geolocationTracking.androidBackgroundPermissionMessage'
)
},
notification: {
title: t('services.geolocationTracking.androidNotificationTitle'),
text: t('services.geolocationTracking.androidNotificationDescription'),
smallIcon: 'mipmap/ic_stat_ic_notification'
}
})
await BackgroundGeolocation.start()
Expand Down
4 changes: 3 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@
}
},
"geolocationTracking": {
"androidBackgroundPermissionMessage": "Recording your movements requires to ≪ {backgroundPermissionOptionLabel} ≫"
"androidBackgroundPermissionMessage": "Recording your movements requires to ≪ {backgroundPermissionOptionLabel} ≫",
"androidNotificationTitle": "Location service on",
"androidNotificationDescription": "Your journey will be recorded into your Cozy"
},
"osReceive": {
"documentType": "Document Type:",
Expand Down
4 changes: 3 additions & 1 deletion src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@
}
},
"geolocationTracking": {
"androidBackgroundPermissionMessage": "Mémoriser vos déplacements nécessite de ≪ {backgroundPermissionOptionLabel} ≫"
"androidBackgroundPermissionMessage": "Mémoriser vos déplacements nécessite de ≪ {backgroundPermissionOptionLabel} ≫",
"androidNotificationTitle": "Service de localisation actif",
"androidNotificationDescription": "Votre déplacement sera enregistré dans votre Cozy"
},
"osReceive": {
"documentType": "Type de document :",
Expand Down

0 comments on commit 19dd83a

Please sign in to comment.