реагировать родные карты поддельные и ложные местоположение - PullRequest
0 голосов
/ 25 марта 2020

Как я могу убедиться, что пользователь не будет использовать макет местоположения и фальшивый GPS при использовании собственных карт реакции?

Когда на устройстве включен режим разработчика, пользователи могут по-прежнему использовать макет. У нас есть способ его остановить?

<MapView
 provider={PROVIDER_GOOGLE}
 ref={ map => { this.map = map }}
region={this.state.mapRegion}
//onRegionChangeComplete={region => this.setState({ region })}
 style={{height: this.state.height}}
 showsUserLocation = {false}
 followUserLocation = {true}
 showsMyLocationButton={false}
 onMapReady={this.onMapReady}
 zoomEnabled = {true}>
 {this.state.geoFenceCoords!=undefined && this.state.geoFenceCoords.map((coords,i) => (
            <MapView.Polygon
            key={i}
                coordinates={coords}
                strokeColor="rgb(84,181,64)"
                strokeWidth={2}
                fillColor="rgba(84,181,64,0.2)" 
                onPress={() => this.onPress()}
                />
        )
)}
  {this.state.lastLat!=null && this.state.lastLong!=null &&   <MapView.Marker
      coordinate={{
        latitude: this.state.lastLat,
        longitude: this.state.lastLong,}}


    >


 <View style={{justifyContent:'center', alignItems:'center',}}>
 <View style={styles.calloutViewPin}>

     {this.state.lastLat!= null && this.state.lastLong!=null && <Text style={styles.textLocPin}>Your current location
    </Text>}
      </View>
      <Image source={marker} style={{width: 20, height: 30, paddingTop: 0, marginTop:0}}/>
      </View>
      </MapView.Marker>}
 </MapView>
...