Firebase Background Handler Interfering with BLE Scanning (Smart Scale) #17102
              
                Unanswered
              
          
                  
                    
                      khanish007
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I am using Flutter + a local plugin (icdevicemanager) to scan for a Smart Scale using BLE. However, when the Firebase background handler is initialized, the BLE scanning stops working. The data is comes in native code but not able to land in setMethodCallHandler in flutter. When i remove the FirebaseMessaging.onBackgroundMessage(_firebaseMessagingBackgroundHandler); scale scan works perfectly fine. This issue only occurs in android.
I want to use both firebase and scanning part.
Any guidance or solutions would be appreciated! Thanks. 🙌
Beta Was this translation helpful? Give feedback.
All reactions