Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error when adding iOS native config for deep linking #401

Open
edhesketh opened this issue Aug 14, 2024 · 2 comments
Open

Build error when adding iOS native config for deep linking #401

edhesketh opened this issue Aug 14, 2024 · 2 comments

Comments

@edhesketh
Copy link

I have implemented CleverTap push notifications in a react native app, and am adding the additional config required for deep linking on iOS (as described here: https://developer.clevertap.com/docs/push-notifications-ios#custom-handling-deeplinkexternal-url)

When I add the suggested CleverTapURLDelegate method below, I get the following error in xcode and the project fails to build:
Conflicting parameter types in implementation of 'shouldHandleCleverTapURL:forChannel:': '__strong id' vs 'CleverTapChannel'

// CleverTapURLDelegate method 
- (BOOL)shouldHandleCleverTapURL:(NSURL *)url forChannel:(CleverTapChannel)channel {
    NSLog(@"Handling URL: \(%@) for channel: \(%d)", url, channel);
    return YES;
}

I'm using version 2.2.1

@akashvercetti
Copy link
Contributor

@edhesketh just a quick question. Does importing via #import <CleverTapSDK/CleverTapURLDelegate.h> not work? If so, could you try #import "CleverTapURLDelegate.h" ?

@edhesketh
Copy link
Author

Thanks for the response @akashvercetti. Yes we're importing via #import <CleverTapSDK/CleverTapURLDelegate.h> but CleverTapURLDelegate.h requires some symbols which are defined in CleverTap.h. This change in the clevertap-ios-sdk would seem to resolve it: CleverTap/clevertap-ios-sdk#366

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants