Last active
January 8, 2019 12:05
-
-
Save nileshtrivedi/2857d802ba76af7fa23e904a1ed80ab6 to your computer and use it in GitHub Desktop.
HyperTrack Onboarding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Import the SDK within your repositories block | |
repositories { | |
maven { url 'http://hypertrack-core-android.s3-website-us-east-1.amazonaws.com/' } | |
... | |
} | |
//Add HyperTrack as a dependency | |
dependencies { | |
compile("com.hypertrack.core:android:0.8.13@aar"){ | |
transitive = true; | |
} | |
... | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pod 'HyperTrackCore' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Make sure to go to the Info tab in your app settings | |
// and add permission strings for "Privacy - Location Always Usage Description" | |
// and "Privacy - Motion Usage Description" | |
[HTCore requestLocationPermissionWithCompletionHandler:^(HTCoreError * _Nullable error) { | |
/// handle error if any | |
}]; | |
| |
[HTCore requestActivityPermissionWithCompletionHandler:^(HTCoreError * _Nullable error) { | |
/// handle error if any | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Make sure to go to the Info tab in your app settings | |
// and add permission strings for "Privacy - Location Always Usage Description" | |
// and "Privacy - Motion Usage Description" | |
HyperTrackCore.requestLocationPermission { (error) in | |
/// handle error if any | |
} | |
| |
HyperTrackCore.requestActivityPermission { (error) in | |
/// handle error if any | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HTCore initializeWithPublishableKey:@"PUBLISHABLE-KEY" completionHandler:^(HTCoreError * _Nullable error) { | |
/// perform post initialization actions | |
/// handle error if any | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HyperTrackCore.initialize(publishableKey: PUBLISHABLE-KEY) { (error) in | |
/// perform post initialization actions | |
/// handle error if any | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HyperTrackCore.requestLocationPermissions(this, new LocationPermissionCallback() { | |
@Override | |
public void onLocationPermissionGranted() { | |
// Handle location permission granted | |
} | |
| |
@Override | |
public void onLocationPermissionDenied() { | |
// Handle location permission denied | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Initialize the SDK within the onCreate method | |
public void onCreate() { | |
super.onCreate(); | |
HyperTrackCore.initialize(this, PUBLISHABLE_KEY); | |
... | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pod 'HyperTrackCore' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment