{"id":65900,"library":"sideshow-apns2","title":"apns2","description":"Package apns2 is a Go Apple Push Notification Service (APNs) provider for sending remote notifications to iOS, tvOS, and OS X apps using HTTP/2.","status":"active","version":"0.25.0","language":"go","source_language":null,"source_url":"https://github.com/sideshow/apns2","tags":["apns","push","notifications","ios"],"install":[{"cmd":"go get github.com/sideshow/apns2","lang":"bash","label":"Install github.com/sideshow/apns2"}],"dependencies":[],"imports":[{"symbol":"apns2","correct":"github.com/sideshow/apns2"}],"quickstart":{"code":"package main\n\nimport (\n\t\"log\"\n\t\"github.com/sideshow/apns2\"\n\t\"github.com/sideshow/apns2/certificate\"\n)\n\nfunc main() {\n\tcert, _ := certificate.FromP12File(\"cert.p12\", \"\")\n\tclient := apns2.NewClient(cert).Production()\n\tnotification := &apns2.Notification{\n\t\tDeviceToken: \"device-token\",\n\t\tPayload:     []byte(`{\"aps\":{\"alert\":\"Hello!\"}}`),\n\t}\n\tres, err := client.Push(notification)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tlog.Printf(\"APNs response: %v\", res)\n}","lang":"go","description":"Sends a push notification to an iOS device via APNs."},"warnings":[],"env_vars":null,"search_vec":"'apn':11,26 'apns2':1,3 'app':23 'appl':7 'go':6 'http/2':25 'io':18,29 'notif':9,16,28 'os':21 'packag':2 'provid':12 'push':8,27 'remot':15 'send':14 'servic':10 'tvos':19 'use':24 'x':22","created_at":"2026-06-17T17:16:40.264809+00:00","updated_at":"2026-06-17T17:16:40.264809+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/sideshow/apns2","github":"https://github.com/sideshow/apns2","docs":"https://pkg.go.dev/github.com/sideshow/apns2#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["messaging"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}