ryuyoonju 07-30
240730 류윤주 위치추적 수정
@bdf69b2277f5d159b66ff5af16a800286e8c8193
src/screen/GpsScreen.js
--- src/screen/GpsScreen.js
+++ src/screen/GpsScreen.js
@@ -139,15 +139,15 @@
                 setLocationData(prevData => ({
                     latitude: [...prevData.latitude, latitude],
                     longitude: [...prevData.longitude, longitude],
-                    timestamp: [...prevData.timestamp, time]
+                    timestamp: [...prevData.timestamp, timestamp]
                 }));
 
-                console.log('위치 업데이트:', { latitude, longitude, timestamp: time });
+                console.log('위치 업데이트:', { latitude, longitude, timestamp: timestamp });
             },
             (error) => {
                 console.error('위치 감시 중 오류:', error);
             },
-            { enableHighAccuracy: true, distanceFilter: 0, interval: 2000 }
+            { enableHighAccuracy: true, distanceFilter: 0, interval: 1000, fastestInterval: 1000, forceRequestLocation: true }
         );
 
         setWatchId(id);
Add a comment
List