docs.rs failed to build bevy_ios_notifications-0.1.6
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
bevy_ios_notifications
Rust crate and Swift package to easily integrate iOS's native Notification API into a Bevy application.
Demo from our game using this crate: zoolitaire.com
Features
- change/read badge
- get remote push deviceToken
- scheduling local notifications
- enable/disable presenting notifications while app is foregrounded
- and the notoriously hard (in unity) to do things like: what notification was clicked
Instructions
- Add to XCode: Add SPM (Swift Package Manager) dependency
- Add Rust dependency
- Setup Plugin
1. Add to XCode
Go to File
-> Add Package Dependencies
and paste https://github.com/rustunit/bevy_ios_notifications.git
into the search bar on the top right:
2. Add Rust dependency
cargo add bevy_ios_notifications
or
bevy_ios_notifications = { version = "0.1" }
3. Setup Plugin
Initialize Bevy Plugin:
// requests permissions for alerts, sounds and badges
app.add_plugins;
Trigger Alert in your application code:
// this will clear the badge, the notification center and all pending ones
// process async events coming in from ios notification system