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

io.getstream.android.push.delegate.PushDelegateProvider obfuscated #5254

Open
orafaaraujo opened this issue May 6, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@orafaaraujo
Copy link

Describe the bug
Hello,

We are facing an issue with a class that is removed when we obfuscate the app.

Fatal Exception: java.lang.RuntimeException: Unable to get provider io.getstream.android.push.delegate.PushDelegateProvider: java.lang.ClassNotFoundException: Didn't find class "io.getstream.android.push.delegate.PushDelegateProvider" on path: DexPathList[[zip file "/data/app/fr.vestiairecollective-8H_Hac6XWrQKRRf9c9nP6w==/base.apk"],nativeLibraryDirectories=[/data/app/fr.vestiairecollective-8H_Hac6XWrQKRRf9c9nP6w==/lib/arm64, /data/app/fr.vestiairecollective-8H_Hac6XWrQKRRf9c9nP6w==/base.apk!/lib/arm64-v8a, /system/lib64, /hw_product/lib64, /system/product/lib64, /prets/lib64]]
       at android.app.ActivityThread.installProvider(ActivityThread.java:8186)
       at android.app.ActivityThread.installContentProviders(ActivityThread.java:7722)
       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7586)
       at android.app.ActivityThread.access$2600(ActivityThread.java:259)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2440)
       at android.os.Handler.dispatchMessage(Handler.java:110)
       at android.os.Looper.loop(Looper.java:219)
       at android.app.ActivityThread.main(ActivityThread.java:8673)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109)

The fix is to add the line below in our rules, but I believe this should be provided by the SDK directly.

-keep class io.getstream.android.push.delegate.PushDelegateProvider

SDK version

  • 6.2.3

To Reproduce
We couldn't reproduce it, but it's happening when the user opens the app.

Expected behavior
No crashes.

Device:

  • Vendor and model: Galaxy Note9, Redmi K20, Huawei P30...
  • Android version: 10 only
@orafaaraujo orafaaraujo added the bug Something isn't working label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant