GodotFirebase icon indicating copy to clipboard operation
GodotFirebase copied to clipboard

[FEATURE REQUEST]: Investigate custom export template for Firebase Cloud Messaging

Open WolfgangSenff opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe. We currently cannot support the Firebase Cloud Messaging API simply because we do not have a custom export template that provides for notifications. The notification channel has to be opened up via the actual Android/iOS app, not the Godot runtime, so it requires the custom template.

Describe the solution you'd like I'd like to see us publish two custom export templates that allow for push notifications to be sent to devices and handled through the game. This can probably be done either through a JavaScript call, or possibly with a runtime argument to the game, but this is something which needs to be researched.

If possible, I would really like to be able to provide a website or something on GitHub (perhaps a page) that can generate the custom template based on whatever version they are requesting.

Describe alternatives you've considered I've considered implementing the same thing via GDScript and a plugin, but it seems it might be impossible due to requiring direct access to the app bundles themselves.

Additional context https://docs.godotengine.org/en/stable/development/compiling/compiling_for_android.html#building-the-export-templates https://godotengine.org/qa/17987/export-templates https://godotengine.org/qa/7603/android-push-notifications

WolfgangSenff avatar Sep 10 '21 14:09 WolfgangSenff

I have been using DrMoriarty's implementation for FCM and works like a charm.

TIBI4 avatar Aug 28 '23 13:08 TIBI4

I've actually been thinking about this recently. I don't want to take that one directly, at least not without asking the person first, but secondly, I don't even know if it actually makes sense in our library, since ours is designed to support only the features which are inherently cross-platform, and FCM is inherently not cross-platform. So I'm still thinking about it. I'm leaving this open and really appreciate the suggestion and link, and may ask DrMoriarty what his thoughts are even. Thanks!

WolfgangSenff avatar Aug 28 '23 15:08 WolfgangSenff

Watch this, will save a lot of time

myselfuser1 avatar Jan 30 '24 05:01 myselfuser1