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
| 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 "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
| #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
| 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, |
OlderNewer