- Map.ir Live Tracker uses MQTT protocol which has low data usage.
- Easy configuration.
- Complete and expressive documentation.
- You can use both Swift and Objective-C languages.
The example applications are the best way to see MapirLiveTracker
in action. Simply open the MapirLiveTracker.xcodeproj
and run the Swift Example
scheme.
There is also an Objective-C Example that is still being developed.
This SDK will be available on CocoaPods soon.
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
To integrate MapirLiveTracker into your Xcode project using Carthage, specify it in your Cartfile
:
github "map-ir/mapir-ios-tracker"
Run carthage update
to build the framework and drag the built MapirLiveTracker.framework
into your Xcode project.
On your application targets’ “Build Phases” settings tab, click the “+” icon and choose “New Run Script Phase” and add the Framework path as mentioned in Carthage Getting started Step 4, 5 and 6
- Add your API Key to Info.plist with
MAPIRAccessToken
key or simply use Publisher/Subscriber initializers with accessToken argument. - use
start(withTrackingIdentifier:)
and pass in your tracking identifier.
Contributions are very welcome 🙌
License is available in LICENSE file.