Open BenBoonya opened 1 year ago
@BenBoonya Did you fix it?
For anyone wondering, just remove the brandDomain: ""
. Leave it null
Is this iOS specific because I can see some Android users of mine with the same behaviour.
I encountered a similar issue as yours, and after several days of investigation, I identified the problem lying within the brandDomain
parameter in AppsFlyerInviteLinkParams
.
"If brandDomain.isEmpty == true
or you haven't registered brandDomain
or brandDomain
hasn't been configured successfully, it will result in an error preventing the creation of a shortened link." (brandDomain
must be accurately configured here).
To resolve this issue, you simply need to remove the brandDomain
or set brandDomain: null
.
Befor:
final AppsFlyerInviteLinkParams inviteLinkParams = AppsFlyerInviteLinkParams(
brandDomain: _brandDomain,
customerID: customerID,
customParams: customParams,
...
);
Resolved:
final AppsFlyerInviteLinkParams inviteLinkParams = AppsFlyerInviteLinkParams(
customerID: customerID,
customParams: customParams,
...
);
Describe the bug On
appsflyer_sdk: ^6.10.3
The link created from the function
generateInviteLink
on iOS (via Flutter SDK) turn out to be the offline link as told by AppsFlyer support.The link with the same param on Android and iOS.
Android https://dev-myapp.onelink.me/ABCD/h31b26w1
iOS https://dev-myapp.onelink.me/ABCD?af_dp=myapp%3A%2F%2Fonline%2Fproducts%2F400&af_channel=app_invite&af_referrer_customer_id=1234567891234-12345&af_og_description=%3Cp%3E%3Cstrong%3E%E0%B8%AA%E0%B8%94%20%E0%B8%AA%E0%B8%B0%E0%B8%AD%E0%B8%B2%E0%B8%94%20%E0%B8%95%E0%B8%A3%E0%B8%87%E0%B8%95%E0%B8%B2%E0%B8%A1%E0%B8%9E%E0%B8%B1%E0%B8%99%E0%B8%98%E0%B8%B8%E0%B9%8C%20%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99%E0%B8%A1%E0%B8%B0%E0%B8%99%E0%B8%B2%E0%B8%A7%E0%B8%9E%E0%B8%B7%E0%B9%89%E0%B8%99%E0%B9%80%E0%B8%A1%E0%B8%B7%E0%B8%AD%E0%B8%87%E0%B8%82%E0%B8%AD%E0%B8%87%E0%B9%84%E0%B8%97%E0%B8%A2%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%95%E0%B8%A5%E0%B8%B2%E0%B8%94%E0%B8%99%E0%B8%B4%E0%B8%A2%E0%B8%A1%E0%B8%A1%E0%B8%B2%E0%B8%81%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%AA%E0%B8%B8%E0%B8%94%E0%B8%9E%E0%B8%B1%E0%B8%99%E0%B8%98%E0%B8%B8%E0%B9%8C%E0%B8%AB%E0%B8%99%E0%B8%B6%E0%B9%88%E0%B8%87%20%E0%B8%9C%E0%B8%A5%E0%B9%83%E0%B8%AB%E0%B8%8D%E0%B9%88%20%E0%B8%A1%E0%B8%B5%E0%B8%AA%E0%B8%B5%E0%B9%80&c=app_invite&af_og_title=%E0%B8%A1%E0%B8%B0%E0%B8%99%E0%B8%B2%E0%B8%A7%E0%B9%81%E0%B8%9B%E0%B9%89%E0%B8%99%20%E0%B9%80%E0%B8%9A%E0%B8%AD%E0%B8%A3%E0%B9%8C%20400%20%E0%B8%84%E0%B8%B1%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B8%94%E0%B9%81%E0%B8%95%E0%B9%88%E0%B8%87%20%28%E0%B9%80%E0%B8%9B%E0%B8%A5%E0%B8%B7%E0%B8%AD%E0%B8%81%E0%B9%80%E0%B8%82%E0%B8%B5%E0%B8%A2%E0%B8%A7%E0%B8%AA%E0%B8%A7%E0%B8%A2%29%20-%2010%20%E0%B8%A5%E0%B8%B9%E0%B8%81&deep_link_value=myapp%3A%2F%2Fonline%2Fproducts%2F400&af_referrer_name=&af_og_image=https%3A%2F%2Fmyimage.com%2Fmedia%2Fproduct%2F%2Fbanner%2F62lqcugx0oaca1j8jaw56wuachwj&af_referrer_image_url=&pid=af_app_invites&af_referrer_uid=1234567891234-1234567&af_siteid=222221111}}
The link value is replace by dummy value but idea is the link generated from iOS should be the same as Android.
To Reproduce Steps to reproduce the behavior:
On iOS
result['payload']['userInviteURL'];
userInviteURL
different from on Android. The url include all detail in thequeryParam
Expected behavior The
userInviteURL
should be the same as Android in this formathttps://dev-myapp.onelink.me/ABCD/h31b26w1
Smartphone (please complete the following information):
Additional context Logs from Android studio