bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
35.4k stars 3.49k forks source link

Android Support: Push Notifications #12572

Open AbstractiveNord opened 6 months ago

AbstractiveNord commented 6 months ago

What problem does this solve or what need does it fill?

My game use network communications to bring new data, and I want to use push notifications with Bevy app. How to do this?

What solution would you like?

Any tips, example, or something else about current support of pushes.

Additional context

I am new to Bevy ecosystem, but I didn't get how to use pushes.

togetherwithasteria commented 6 months ago

If you are looking for pre-existing code for cross-platform notification support in Rust, searching the web gives gives me rust-notifica. Unfortunately, it only implements for Mac, Windows, and Linux.

For Android, it's probably that you have to use the official Android API. Read more about that here, which you can call through Java Native Interface (in Rust use jni crate)... I forgot whether there's something extra I need to do. It's been two years since I used this.