pathsense / pathsense-samples-ios Goto Github PK
View Code? Open in Web Editor NEWSample for use with the PathSense iOS Framework
License: MIT License
Sample for use with the PathSense iOS Framework
License: MIT License
I have read the document, it said that "Start monitoring ambient location changes. The behavior of this service is not affected by the desiredAccuracy or distanceFilter properties. Locations will be delivered through the same delegate callback as the standard location service. You can expect to recieve sparce location data intermittenly."
And when I invoke the startMonitoringAmbientLocationChanges ,as it said, the delegate method "locationmanager:didUpdateLocations" doesn't called anytime.
So when I want draw the path from coordinates, it doesn't invoke the delegate method,and I can't get the coordinate, and I can't draw the line. The system method "startUpdatingLocation" is works better than this.
If I want monitor the user's track and draw the polyline on the map, Which method can I use?
I'm running your SDK on my mobile. I see battery consumption is more.
What are the properties need to use less battery consumption?
Below is my sample code:
locationManager = PSLocationManager.init()
locationManager?.maximumLatency = 180
locationManager?.setDelegate(self)
locationManager?.allowsBackgroundLocationUpdates = true
locationManager?.pausesLocationUpdatesWhenDeviceIsStationary = true
locationManager?.desiredAccuracy = kCLLocationAccuracyBest
locationManager?.startUpdatingLocation()
This is the error message
/Users/Guodada/Library/Developer/Xcode/DerivedData/Test-fzeizrhmizoqabfahizcpwarwtny/Build/Intermediates/Test.build/Debug-iphoneos/Test.build/Script-C77E49CC1E9B8B7E006674CE.sh: line 2: bash/Users/Guodada/Library/Developer/Xcode/DerivedData/Test-fzeizrhmizoqabfahizcpwarwtny/Build/Products/Debug-iphoneos/Test.app/Frameworks/PSLocation.framework/strip-frameworks.sh: No such file or directory
this is the build phase config
Where is the problem?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.