在我的应用程序中,我不想向用户显示通知或此类消息。我不要你露面我该怎么办?
这是我的配置:
BackgroundGeolocation.configure({
locationProvider: BackgroundGeolocation.ACTIVITY_PROVIDER,
desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY,
stationaryRadius: 50,
distanceFilter: 50,
notificationTitle: 'Background tracking',
notificationText: 'enabled',
debug: true,
interval: 10000,
fastestInterval: 5000,
activitiesInterval: 10000,
url: 'http://192.168.81.15:3000/location',
httpHeaders: {
'X-FOO': 'bar'
},
// customize post properties
postTemplate: {
lat: '@latitude',
lon: '@longitude',
foo: 'bar' // you can also add your own properties
}
});
答案 0 :(得分:0)
您不能。这些消息是吐司消息。阅读有关它们的信息。
答案 1 :(得分:0)
像这样,将debug true更改为false。取消显示调试日志消息。
BackgroundGeolocation.configure({
...
debug: false,
...
});
答案 2 :(得分:0)
const initialState = {
features:['f1','f2','f3','f4','f5'],
targets:['t1','t2']
}
const addFeatureReducer = (state=initialState, action) =>{
switch(action.type){
case FEATURE_CHANGED:
console.log("action: ", action)
return {...state , state, features: action.data.features, targets: action.data.targets};
default:
return state;
}
}
export default combineReducers({ addFeatureReducer })
答案 3 :(得分:0)
吐司通知用于调试。
您可以这样关闭它:
调试:false,