Last active
November 4, 2023 14:36
-
-
Save piyushgupta27/7471bcab158a77302381f5cf6db58f21 to your computer and use it in GitHub Desktop.
MockTracking APIs to test HyperTrack's features across the dashboard, widgets, in-app tracking, and web tracking views.
This file contains 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
// Replace startTracking API with startMockTracking | |
// HyperTrack.startTracking(); | |
HyperTrack.startMockTracking(new HyperTrackCallback() { | |
@Override | |
public void onSuccess(@NonNull SuccessResponse response) { | |
// Handle startMockTracking success here | |
} | |
@Override | |
public void onError(@NonNull ErrorResponse errorResponse) { | |
// Handle startMockTracking error here | |
Toast.makeText(MainActivity.this, errorResponse.getErrorMessage(), Toast.LENGTH_SHORT).show(); | |
} | |
}); | |
// Replace stopTracking API with stopMockTracking | |
// HyperTrack.stopTracking(); | |
HyperTrack.stopMockTracking(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using HyperTrack SDK 6.42 version however startMockTracking and stopMockTracking methods do not exist and I didn't know which SDK version contains these methods. Could you tell me which SDK version has these methods?