|
|
@@ -24,23 +24,25 @@ export const uploadPermissions = () => {
|
|
|
global.notification = 'denied'
|
|
|
}
|
|
|
var Jto = require('react-native').NativeModules.NativeBridge;
|
|
|
- Jto.checkSystemLocationService().then(enableLocation=>{
|
|
|
+ Jto.checkSystemLocationService().then(enableLocation => {
|
|
|
clientInfo({
|
|
|
perm: {
|
|
|
android: {
|
|
|
camera: statuses[PERMISSIONS.ANDROID.CAMERA],
|
|
|
location: {
|
|
|
- location_services_enabled:enableLocation,
|
|
|
+ location_services_enabled: enableLocation,
|
|
|
authorization_status: statuses[PERMISSIONS.ANDROID.ACCESS_COARSE_LOCATION]
|
|
|
},
|
|
|
- notification: global.notification
|
|
|
+ notification: {
|
|
|
+ authorization_status: global.notification
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
|
|
|
-
|
|
|
+
|
|
|
})
|
|
|
});
|
|
|
return
|
|
|
@@ -52,7 +54,7 @@ export const uploadPermissions = () => {
|
|
|
// getLocalPush()
|
|
|
|
|
|
var Jto = require('react-native').NativeModules.NativeBridge;
|
|
|
- Jto.getLocationAuthStatus((res)=>{
|
|
|
+ Jto.getLocationAuthStatus((res) => {
|
|
|
clientInfo({
|
|
|
perm: {
|
|
|
ios: {
|
|
|
@@ -60,14 +62,14 @@ export const uploadPermissions = () => {
|
|
|
camera: statuses[PERMISSIONS.IOS.CAMERA],
|
|
|
location: res,
|
|
|
notification: {
|
|
|
- authorization_status:global.notification
|
|
|
+ authorization_status: global.notification
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
|
|
|
-
|
|
|
+
|
|
|
})
|
|
|
}
|
|
|
|