WarplyReactMethods.m
995 Bytes
//
// WarplyEvents.m
// App
//
// Created by Fotios Kalaitzidis on 23/10/2018.
// Copyright © 2018 Facebook. All rights reserved.
//
#import "WarplyReactMethods.h"
#import <UIKit/UIKit.h>
#import <AdSupport/AdSupport.h>
@implementation WarplyReactMethods
- (void) sendEvent: (NSString *) eventName priority: (BOOL) priority {
// React Native bridge for event logging
// Note: This is a simplified implementation for React Native compatibility
// The actual event logging is now handled by the Swift WarplySDK
NSLog(@"React Native Event: %@ (priority: %@)", eventName, priority ? @"YES" : @"NO");
// TODO: Bridge to Swift WarplySDK.shared.logTrackersEvent if needed
// For now, this provides basic React Native compatibility
}
- (NSString *) getUniqueId {
return [[[UIDevice currentDevice] identifierForVendor] UUIDString];
}
- (NSString *) getAdvertisementId {
return [[ASIdentifierManager sharedManager].advertisingIdentifier UUIDString];
}
@end