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

convertUniversalLink Android Implementation #241

Open
oktaysenkan opened this issue Jun 11, 2024 · 0 comments
Open

convertUniversalLink Android Implementation #241

oktaysenkan opened this issue Jun 11, 2024 · 0 comments

Comments

@oktaysenkan
Copy link

I need convertUniversalLink implementation on Android.

iOS

RCT_EXPORT_METHOD(convertUniversalLink:(NSString *)urlString scheme:(NSString *)scheme callback:(RCTResponseSenderBlock)callback) {
NSURL *url = [[NSURL alloc] initWithString:urlString];
NSURL *converted = [Adjust convertUniversalLink:url scheme:scheme];
if (converted != nil && converted.absoluteString != nil && converted.absoluteString.length > 0) {
callback(@[converted.absoluteString]);
} else {
callback(nil);
}
}

Android

@ReactMethod
public void convertUniversalLink(final String url, final String scheme, final Callback callback) {
callback.invoke("");
}

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

No branches or pull requests

1 participant