firebase_rs_sdk/messaging/
mod.rs

1#![doc = include_str!("README.md")]
2mod api;
3mod constants;
4pub mod error;
5mod subscription;
6mod support;
7mod sw_manager;
8mod token_store;
9
10pub use api::{get_messaging, register_messaging_component, Messaging, PermissionState};
11#[cfg(not(all(feature = "wasm-web", target_arch = "wasm32")))]
12pub use subscription::PushSubscriptionManager;
13#[cfg(all(feature = "wasm-web", target_arch = "wasm32"))]
14pub use subscription::{PushSubscriptionDetails, PushSubscriptionHandle, PushSubscriptionManager};
15pub use support::is_supported;
16#[cfg(not(all(feature = "wasm-web", target_arch = "wasm32")))]
17pub use sw_manager::ServiceWorkerRegistrationHandle;
18#[cfg(all(feature = "wasm-web", target_arch = "wasm32"))]
19pub use sw_manager::{ServiceWorkerManager, ServiceWorkerRegistrationHandle};
20
21pub use sw_manager::ServiceWorkerManager;