问题
I have developed a flutter app currently running on android, which uses Firebase Cloud Messaging (FCM) with an embedded google_services.json.
However, I would like users to be able to create their own firebase project and for my app to be able to switch to use their project settings at runtime, rather than use my embedded project settings?
Can I achieve this in flutter using the existing firebase_messaging (5.1.4) plug in? Or will this need to be customised in android/ios code?
I am assuming there will be need to be some sort of oAuth authentication with google before they can re-point to use their FCM project settings. Any guidance, examples would be greatly appreciated.
来源:https://stackoverflow.com/questions/57767950/can-my-flutter-app-be-configured-at-runtime-to-use-a-user-custom-fcm-project-set