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

Fix PushDelegate instantiation in AndroidPushDelegateProvider #23

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

VelikovPetar
Copy link

@VelikovPetar VelikovPetar commented Jan 15, 2025

🎯 Goal / 🛠 Implementation details

  • In the AndroidPushDelegateProvider we are currently checking if the class name passed via the <meta-data android:value="io.getstream.android.push.PushDelegate"> can be casted to AndroidPushDelegateProvider. This check will always fail, as the meta-data expects a class of type PushDelegate, which will then be instantiated via reflection by the AndroidPushDelgateProvider, and stored in the PushDelegateProvider.delegates field. In the PR, we now check if the class is of type PushDelegate, and then we instantiate it.

@VelikovPetar VelikovPetar requested review from JcMinarro, skydoves and a team January 15, 2025 13:13
…or easier usage of FirebaseMessagingDelegate."

This reverts commit 382a454.
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

Successfully merging this pull request may close these issues.

1 participant