|
@@ -3,6 +3,7 @@
|
3
|
3
|
import * as Permissions from 'expo-permissions';
|
4
|
4
|
import {Notifications} from 'expo';
|
5
|
5
|
import AsyncStorageManager from "./AsyncStorageManager";
|
|
6
|
+import LocaleManager from "./LocaleManager";
|
6
|
7
|
|
7
|
8
|
const EXPO_TOKEN_SERVER = 'https://srv-falcon.etud.insa-toulouse.fr/~amicale_app/expo_notifications/save_token.php';
|
8
|
9
|
|
|
@@ -139,6 +140,7 @@ export default class NotificationsManager {
|
139
|
140
|
}
|
140
|
141
|
let data = {
|
141
|
142
|
function: 'setup_machine_notification',
|
|
143
|
+ locale: LocaleManager.getCurrentLocale(),
|
142
|
144
|
token: token,
|
143
|
145
|
machine_id: machineID,
|
144
|
146
|
enabled: isEnabled
|