-
Notifications
You must be signed in to change notification settings - Fork 96
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
Pass long URL when try creating Short URL in Offline #237
Comments
This package calls Branch Native SDK functions on each platform. The problem reported is not in the Flutter package, but in the Native SDK. Please open an issue in the platform repository: |
@RodrigoSMarques I have debug this package on Android and did return Long URL when generating short URL in offline at this file. Line 383 in 9aa3355
It also returns error but in the code it was not considering the URL but it did return URL from Branch SDK. |
Strange. If the Branch SDK returns an error, the link will not be returned. buo.generateShortUrl(activity, linkProperties, new Branch.BranchLinkCreateListener() {
@Override
public void onLinkCreate(String url, BranchError error) {
if (error == null) {
LogUtils.debug(DEBUG_NAME, "Branch link to share: " + url);
response.put("success", true);
response.put("url", url);
} else {
response.put("success", false);
response.put("errorCode", String.valueOf(error.getErrorCode()));
response.put("errorMessage", error.getMessage());
}
result.success(response);
}
}); I need to debug, I'll do that later. |
If the SDK returns an error, but also returns the URL, I can return the same in the function. |
Debugging the code on iOS and Android, I found that even with the connectivity error, the url is generated. |
* Fix issue #237: `Pass long URL when try creating Short URL in Offline`
Closed. Version 6.7.1 with fix released |
Describe the bug
Currently Long URL is not passed when creating short URL in offline. Branch.Io does support that. As per documentation it returns the Long URL if it fails to generate short URL. I have already checked that by debugging on Android it does return long URL in offline or failed to create URL.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should pass the long URL if the URL is not null
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (Please complete the following information. remove session if not platform):
Flutter: version: 3.10.5
Package version: 6.6.0
OS: Both iOS and Android
Device: All device
Additional context
https://help.branch.io/developers-hub/docs/ios-full-reference#shortened-links

The text was updated successfully, but these errors were encountered: