Skip to content

Commit

Permalink
feat: deep link method modification
Browse files Browse the repository at this point in the history
  • Loading branch information
shwetalodhe123 committed Jun 13, 2024
1 parent ad53d2a commit d05885c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Sources/Classes/Headers/Public/RSClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ typedef void (^Callback)(NSObject *_Nullable);
- (void) onIntegrationReady:(id<RSIntegrationFactory>)factory withCallback:(Callback)callback;
- (void) clearAdvertisingId;

- (void)openURL:(NSURL *)url options:(NSDictionary *)options;

- (void)openURL:(NSURL *)url options:(NSDictionary<NSString*, id>*)options;
- (void)openURL:(NSURL *)url;

@property (strong, nonatomic, readonly) NSNumber* _Nullable sessionId;
@property (strong, nonatomic, readonly) NSString* _Nullable anonymousId;
@property (strong, nonatomic, readonly) RSConfig* _Nullable config;
Expand Down
4 changes: 2 additions & 2 deletions Sources/Classes/RSClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ - (void) onIntegrationReady:(id<RSIntegrationFactory>)factory withCallback:(Call

#pragma mark - Deep Link Track

- (void)openURL:(NSURL *)url options:(NSDictionary *)options
- (void)openURL:(NSURL *)url options:(NSDictionary<NSString *,NSObject *> *)options
{
if ([RSClient getOptStatus]) {
[self reportDiscardedEvent];
Expand All @@ -562,7 +562,7 @@ - (void)openURL:(NSURL *)url options:(NSDictionary *)options
properties[@"url"] = urlString;
if (options != nil) {
for (NSString *key in options) {
properties[@"options"] = options;
properties[key] = options[key];
}
}
[self track:@"Deep Link Opened" properties:[properties copy]];
Expand Down

0 comments on commit d05885c

Please sign in to comment.