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
CREATE EXTERNAL TABLE <your-dbname>.<table-name> ( | |
`device_id` string, | |
`id_type` string, | |
`latitude` float, | |
`longitude` float, | |
`horizontal_accuracy` float, | |
`timestamp` bigint, | |
`ip_address` string, | |
`device_os` string, | |
`os_version` string, |
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 <UIKit/UIKit.h> | |
@import QDPublisher; | |
@interface AppDelegate : UIResponder <UIApplicationDelegate, | |
PublisherDelegate> | |
@end |
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 "AppDelegate.h" | |
@interface AppDelegate () | |
@end | |
@implementation AppDelegate | |
NSString *integrationKey = @"your integration key here"; | |
- (BOOL)application:(UIApplication *)application |
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
extension AppDelegate: PublisherDelegate { | |
/// this method called when failure to track location | |
func publisherOnError(error: Error) { | |
print("track location failed, error: \(error. | |
localizedDescription)") | |
} | |
/// this method called when location successfully tracked | |
func publisherOnSuccessTracking() { |
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 QDPublisher | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
let publisher = Publisher.shared | |
let integrationKey: String = "your integration key here" | |
func application(_ application: UIApplication, | |
didFinishLaunchingWithOptions launchOptions: [UIApplication. |
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
// USE Constans.PRIORITY_HIGH_ACCURACY: | |
// to request the most accurate locations available. | |
// This will return the finest location available. | |
// OR Constans.PRIORITY_BALANCED_POWER_ACCURACY: | |
// to request "block" level accuracy. | |
// Block level accuracy is considered to be about 100 meter accuracy. | |
// Using a coarse accuracy such as this often consumes less power. | |
Client.getInstance().startTrackingLocation(this, |
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
// USE Constans.PRIORITY_HIGH_ACCURACY: | |
// to request the most accurate locations available. | |
// This will return the finest location available. | |
// OR Constans.PRIORITY_BALANCED_POWER_ACCURACY: | |
// to request "block" level accuracy. | |
// Block level accuracy is considered to be about 100 meter accuracy. | |
// Using a coarse accuracy such as this often consumes less power. | |
Client.getInstance().startTrackingLocation(this, |
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
Client.getInstance().setup(this, | |
true, | |
"YOUR INTEGRATION KEY", | |
object : Client.ResultCallback { | |
override fun onSuccess(result: String) { | |
} | |
override fun onError(result: String) { | |
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
Client.getInstance().setup(this, | |
true, | |
"YOUR INTEGRATION KEY", | |
new Client.ResultCallback() { | |
@Override | |
public void onSuccess(String result) { | |
} | |
@Override |
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
multiDexEnabled true |
NewerOlder