Enum expo_server_sdk::Priority[][src]

pub enum Priority {
    Default,
    Normal,
    High,
}

The delivery priority of the message. Specify "default" or omit this field to use the default priority on each platform, which is "normal" on Android and "high" on iOS.

On Android, normal-priority messages won't open network connections on sleeping devices and their delivery may be delayed to conserve the battery. High-priority messages are delivered immediately if possible and may wake sleeping devices to open network connections, consuming energy.

On iOS, normal-priority messages are sent at a time that takes into account power considerations for the device, and may be grouped and delivered in bursts. They are throttled and may not be delivered by Apple. High-priority messages are sent immediately. Normal priority corresponds to APNs priority level 5 and high priority to 10.

See the Expo documentation on message format for more details.

Variants

Trait Implementations

impl Debug for Priority
[src]

Formats the value using the given formatter. Read more

impl Clone for Priority
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Priority
[src]

Returns the "default value" for a type. Read more

impl FromStr for Priority
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

impl Send for Priority

impl Sync for Priority