Commit d2392da4 authored by Bosko Petreski's avatar Bosko Petreski Committed by Bosko Petreski

#53 nil values fixes in functions

parent 9f0ced60
......@@ -60,9 +60,11 @@
}
}
-(NSDictionary *)basicEventProperties:(NSString *)type eventObject:(NSDictionary<NSString*,id> *)eventObject{
if(!Primed.sharedInstance.public_key){
NSLog(@"[PRIMED] Tracker not initialized - missing public key");
}
NSMutableDictionary *payload = [NSMutableDictionary
dictionaryWithDictionary:@{@"apikey":Primed.sharedInstance.public_key,
dictionaryWithDictionary:@{@"apikey":(Primed.sharedInstance.public_key ?: @""),
@"ts":@((NSUInteger)(NSDate.date.timeIntervalSince1970 * 1000)),
@"sid":sid,
@"did":did,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment