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

DeepLink Error: Dee3p link to non-existent method on Production #287

Open
thesultanster opened this issue May 14, 2020 · 1 comment
Open

Comments

@thesultanster
Copy link

thesultanster commented May 14, 2020

Our app links and deeplinks work on a dev build. However once we test a production build, non of the deeplink or applinks work.

We instead get an error that is caught by our DeepLinkReceiver

The following error message is logged when trying to launch a deeplink.

Error Stacktrace

E/DeepLinkReceiver:15: DeepLink Error: Dee3p link to non-existent method: createExploreIntent (We called a deeplink that goes to an explore page in this example)

I suspect this issue might be with our pro guard rules?

Our Pro Guard Rules

-keep class com.airbnb.deeplinkdispatch.** { *; }
-keep @interface com.getsomeheadspace.android.common.deeplink.HeadspaceAppLink
-keep @interface com.getsomeheadspace.android.common.deeplink.HeadspaceDeepLink
-keepclasseswithmembers class * {
    @com.airbnb.deeplinkdispatch.DeepLink <methods>;
    @com.getsomeheadspace.android.common.deeplink.HeadspaceAppLink <methods>;
    @com.getsomeheadspace.android.common.deeplink.HeadspaceDeepLink <methods>;
}
@yolapop
Copy link

yolapop commented Mar 3, 2021

How did you declare HeadspaceAppLink?

If you are using Kotlin, don't forget to set the retention to BINARY

@DeepLinkSpec(prefix = ["something"])
@Retention(AnnotationRetention.BINARY)
annotation class AppDeeplink(val value: Array<String>)

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

2 participants