-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[FIREBASE CLOUD MESSAGEING ]: Issue: Conflict Between ABTO SIP SDK Method Channel and Firebase Background Message Handling #13543
Comments
Hi @dmsherazi, thanks for the report. What version of |
SipWrapper.java.txt
I update to latest versions but still having the issue . I will attach the relevant SIpwarapper files here as well. Its worth noting that the issue affects the android app and not the iOS app generated by flutter
|
I tried to get some help from chatgpt and here is what it says
|
Kindly provide a complete minimal repo reproducing this issue. |
I’ve attached a link of git file containing an example app where I’m experiencing the same issue with Firebase. Please open the LINK file and run the example app in abto_sdk (https://github.com/usama-sherazi/Example/tree/master/example) app to replicate the problem. |
@SelaseKay Hi , did you get time to check the issue? |
Hi @usama-sherazi, I've checked out the repo. I'm unable to register into the app. Can you provide some assistance? |
I also have the same problem please help me solve this |
you can use any sip credentials from your working sip server (for example asterisk) |
user is 123 if you disable the line for background firebase messaging callback , you can register |
If you want @SelaseKay to look into this, I suggest making a repo with the bare minimum code to reproduce this. The only thing that should need to be changed is the google-service.json file for firebase configuration. Other than that, it should be a case of commenting in/commenting out the background message handler to reproduce. |
Is there an existing issue for this?
Which plugins are affected?
Messaging
Which platforms are affected?
Android
Description
I am using the ABTO SIP SDK in my Flutter app, and I've implemented a SipChannel using MethodChannel for communication between Flutter and native code.
However, when I enable Firebase background message handling with the following line:
FirebaseMessaging.onBackgroundMessage(_firebaseMessagingBackgroundHandler);
the method channel's handleMethod is not triggered for SIP registration events, even though the native side logs the events as expected.
For example, in SipWrapper.java, the logs indicate that the events are occurring, but the method channel call does not reach the Flutter side:
If I comment out the Firebase background message handler line, the method channel works as expected, and the SIP SDK events are passed correctly to Flutter.
Expected Behavior:
The handleMethod should be invoked even when Firebase background message handling is enabled.
Actual Behavior:
When Firebase background message handling is enabled, handleMethod is not triggered, even though native logs indicate that the SIP registration events are occurring.
Reproducing the issue
Steps to Reproduce:
Enable Firebase background message handling in the app using:
FirebaseMessaging.onBackgroundMessage(_firebaseMessagingBackgroundHandler);
Set up the MethodChannel in Flutter as shown in the code above.
Register the SIP SDK and observe that handleMethod is not triggered despite native logs confirming the events.
Comment out the Firebase background message handler line and observe that the method channel works as expected.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.3, on macOS 15.0.1 24A348 darwin-arm64, locale en-OM)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] Connected device (5 available)
[✓] Network resources
Firebase Core version
2.24.2
Flutter Version
3.24.3
Relevant Log Output
No response
Flutter dependencies
Expand
Flutter dependencies
snippetReplace this line with the contents of your `flutter pub deps -- --style=compact`.
Additional context and comments
No response
The text was updated successfully, but these errors were encountered: