flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

[firebase_messaging] Support multiple FirebaseApp instances

Open SupposedlySam opened this issue 1 year ago • 2 comments

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!

SupposedlySam avatar Mar 04 '24 18:03 SupposedlySam

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=1tja5fc_upMQ.._gaMTIxNDE1NzQ3MS4xNzEwMzIzMTQ2_ga_CW55HF8NVT*MTcxMDMyMzE0Ni4xLjAuMTcxMDMyMzE0Ni4wLjAuMA..#getmessaging_cf608e1

russellwheatley avatar Mar 13 '24 10:03 russellwheatley

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

ray007 avatar Aug 22 '24 12:08 ray007

Closing this out for now as mentioned previously, multi-app support is only available for web. If the upstream SDKs (apple and android) change, FlutterFire will also support multi-apps for messaging.

russellwheatley avatar Nov 18 '24 13:11 russellwheatley