firebase / flutterfire

🔥 A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.62k stars 3.95k forks source link

[firebase_messaging] Support multiple FirebaseApp instances #12428

Open SupposedlySam opened 6 months ago

SupposedlySam commented 6 months ago

What feature would you like to see?

Add support for non-default databases in Firebase Messaging.

Currently the instanceFor factory constructor is private for firebase_messaging, but is exposed for Auth, Firestore, Functions, and Storage.

Is there a missing a feature that is supported on an underlying SDK? Or is there a feature that you think would be useful to have in FlutterFire?

I'm not sure if it's supported in the underlying SDK yet or not, but it would be great to have!

russellwheatley commented 6 months ago

Not supported in either the Firebase iOS or android SDKs, but it appears to be supported on web: https://firebase.google.com/docs/reference/js/messaging_.md?_gl=1*tja5fc*_up*MQ..*_ga*MTIxNDE1NzQ3MS4xNzEwMzIzMTQ2*_ga_CW55HF8NVT*MTcxMDMyMzE0Ni4xLjAuMTcxMDMyMzE0Ni4wLjAuMA..#getmessaging_cf608e1

ray007 commented 3 weeks ago

So the JS platform is the only one to actually support multiple messaging instances?