Can my flutter app be configured at runtime to use a user custom FCM project settings?

梦想与她 提交于 2020-01-16 09:03:30

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!