package
0.23.0
Repository: https://github.com/tinode/chat.git
Documentation: pkg.go.dev

# Functions

DecodeGoogleApiError converts very complex googleapi.Error to a bit more manageable structure.

# Constants

Default notification priority.
Higher notification priority.
Lower notification priority.
Highest notification priority.
Lowest notification priority.
If priority is unspecified, notification priority is set to `PRIORITY_DEFAULT`.
Default priority for notification messages.
Default priority for data messages.
AndroidVisibilityPrivate show this notification on all lockscreens, but conceals sensitive or private information on secure lockscreens.
AndroidVisibilityPublic show this notification in its entirety on all lockscreens.
AndroidVisibilitySecret do not reveal any part of this notification on a secure lockscreen.
AndroidVisibilityUnspecified if unspecified, default to `Visibility.PRIVATE`.
Use the alert push type for notifications that trigger a user interaction—for example, an alert, badge, or sound.
Use the background push type for notifications that deliver content in the background, and don’t trigger any user interactions.
Use the fileprovider push type to signal changes to a File Provider extension.
Use the location push type for notifications that request a user’s location.
Use the voip push type for notifications that provide information about an incoming Voice-over-IP (VoIP) call.
The certificate was bad (HTTP error code = 403).
The client certificate was for the wrong environment (HTTP error code = 403).
The collapse identifier exceeds the maximum allowed size (HTTP error code = 400).
The specified device token was bad.
The apns-expiration value is bad (HTTP error code = 400).
The apns-id value is bad (HTTP error code = 400).
The request contained a bad :path value (HTTP error code = 404).
The apns-priority value is bad (HTTP error code = 400).
The apns-topic was invalid (HTTP error code = 400).
The device token does not match the specified topic (HTTP error code = 400).
One or more headers were repeated (HTTP error code = 400).
The provider token is stale and a new token should be generated (HTTP error code = 403).
The specified action is not allowed (HTTP error code = 403).
Idle time out (HTTP error code = 400).
An internal server error occurred (HTTP error code = 500).
The provider token is not valid or the token signature could not be verified (HTTP error code = 403).
The specified :method was not POST (HTTP error code = 405).
The device token is not specified in the request :path.
No provider certificate was used to connect to APNs and Authorization header was missing or no provider token was specified (HTTP error code = 403).
The apns-topic header of the request was not specified and was required.
The message payload was empty (HTTP error code = 400).
The message payload was too large.
The service is unavailable (HTTP error code = 503).
The server is shutting down (HTTP error code = 503).
The provider token is being updated too often (HTTP error code = 429).
Too many requests were made consecutively to the same device token (HTTP error code = 429).
Pushing to this topic is not allowed (HTTP error code = 400).
The device token is inactive for the specified topic (HTTP error code = 410).
An unknown internal error occurred (HTTP error code = 500).
Request parameters were invalid (HTTP error code = 400).
Sending limit exceeded for the message target (HTTP error code = 429).
The authenticated sender ID is different from the sender ID for the registration token (HTTP error code = 403).
APNs certificate or web push auth key was invalid or missing (HTTP error code = 401).
The server is overloaded (HTTP error code = 503).
App instance was unregistered from FCM (HTTP error code = 404).
No more information is available about this error.
Multiple notifications with the same collapse identifier are displayed to the user as a single notification.
A UNIX epoch date expressed in seconds (UTC).
A canonical UUID that identifies the notification.
The priority of the notification.
The value of this header must accurately reflect the contents of your notification’s payload.
The topic of the remote notification, which is typically the bundle ID for your app.
InterruptionLevelActive is used to indicate the importance and delivery timing of a notification.
InterruptionLevelCritical is used to indicate the importance and delivery timing of a notification.
InterruptionLevelPassive is used to indicate that notification be delivered in a passive manner.
InterruptionLevelTimeSensitive is used to indicate the importance and delivery timing of a notification.

# Structs

Aps is the APNS payload.
ApsAlert is the content of the aps.Alert field.
Config is the configuration of a Notification payload.
GApiError stores a simplified representation of an error returned by a call to Google API.
Payload to be sent for a specific notification type.

# Type aliases

AndroidNotificationPriorityType defines notification priority consumeed by the client after it receives the notification.
AndroidPriorityType defines the server-side priorities https://goo.gl/GjONJv.
AndroidVisibilityType defines notification visibility constants https://developer.android.com/reference/android/app/Notification.html#visibility.
No description provided by the author
InterruptionLevelType defines the values for the APNS payload.aps.InterruptionLevel.