gorush

package
v0.0.0-...-72d413f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2023 License: Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestAPNSClientDevHost

func TestAPNSClientDevHost(t *testing.T)

func TestAPNSClientInvaildToken

func TestAPNSClientInvaildToken(t *testing.T)

func TestAPNSClientProdHost

func TestAPNSClientProdHost(t *testing.T)

func TestAPNSClientUseProxy

func TestAPNSClientUseProxy(t *testing.T)

func TestAPNSClientVaildToken

func TestAPNSClientVaildToken(t *testing.T)

func TestAlertStringExample2ForIos

func TestAlertStringExample2ForIos(t *testing.T)

URL: https://goo.gl/5xFo3C Example 2

{
    "aps" : {
        "alert" : {
            "title" : "Game Request",
            "body" : "Bob wants to play poker",
            "action-loc-key" : "PLAY"
        },
        "badge" : 5
    },
    "acme1" : "bar",
    "acme2" : [ "bang",  "whiz" ]
}

func TestAlertStringExample3ForIos

func TestAlertStringExample3ForIos(t *testing.T)

URL: https://goo.gl/5xFo3C Example 3

{
    "aps" : {
        "alert" : "You got your emails.",
        "badge" : 9,
        "sound" : "bingbong.aiff"
    },
    "acme1" : "bar",
    "acme2" : 42
}

func TestApnsHostFromRequest

func TestApnsHostFromRequest(t *testing.T)

func TestCheckSilentNotification

func TestCheckSilentNotification(t *testing.T)

Silent Notification: The payload’s aps dictionary must include the content-available key with a value of 1. The payload’s aps dictionary must not contain the alert, sound, or badge keys. ref: https://goo.gl/m9xyqG

func TestDisabledAndroidIosConf

func TestDisabledAndroidIosConf(t *testing.T)

func TestDisabledIosNotifications

func TestDisabledIosNotifications(t *testing.T)

func TestIOSAlertNotificationStructure

func TestIOSAlertNotificationStructure(t *testing.T)

func TestIOSNotificationStructure

func TestIOSNotificationStructure(t *testing.T)

func TestIOSSoundAndVolume

func TestIOSSoundAndVolume(t *testing.T)

func TestIOSSummaryArg

func TestIOSSummaryArg(t *testing.T)

func TestMessageAndTitle

func TestMessageAndTitle(t *testing.T)

func TestMissingIOSCertificate

func TestMissingIOSCertificate(t *testing.T)

func TestPushToIOS

func TestPushToIOS(t *testing.T)

func TestSendZeroValueForBadgeKey

func TestSendZeroValueForBadgeKey(t *testing.T)

Silent Notification which payload’s aps dictionary must not contain the alert, sound, or badge keys. ref: https://goo.gl/m9xyqG

func TestWrongIosCertificateExt

func TestWrongIosCertificateExt(t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL