[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-5134":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":16,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":9,"updatedAt":33,"readmeContent":34,"aiSummary":35,"trendingCount":15,"starSnapshotCount":15,"syncStatus":36,"lastSyncTime":37,"discoverSource":38},5134,"gorush","appleboy\u002Fgorush","appleboy","A push notification server written in Go (Golang).",null,"Go",8737,887,183,54,0,3,17,68.05,"MIT License",false,"master",true,[24,25,26,27,28,29,30,31,32],"android","apns","gcm","golang","gorush-server","ios","ios-alert-payload","ios-notification","notification-server","2026-06-12 04:00:24","# gorush\n\nA push notification micro server using [Gin](https:\u002F\u002Fgithub.com\u002Fgin-gonic\u002Fgin) framework written in Go (Golang) and see the [demo app](https:\u002F\u002Fgithub.com\u002Fappleboy\u002Fflutter-gorush).\n\n[![Run Lint and Testing](https:\u002F\u002Fgithub.com\u002Fappleboy\u002Fgorush\u002Factions\u002Fworkflows\u002Ftesting.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fappleboy\u002Fgorush\u002Factions\u002Fworkflows\u002Ftesting.yml)\n[![Trivy Security Scan](https:\u002F\u002Fgithub.com\u002Fappleboy\u002Fgorush\u002Factions\u002Fworkflows\u002Ftrivy-scan.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fappleboy\u002Fgorush\u002Factions\u002Fworkflows\u002Ftrivy-daily-scan.yml)\n[![GoDoc](https:\u002F\u002Fgodoc.org\u002Fgithub.com\u002Fappleboy\u002Fgorush?status.svg)](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fappleboy\u002Fgorush)\n[![codecov](https:\u002F\u002Fcodecov.io\u002Fgh\u002Fappleboy\u002Fgorush\u002Fbranch\u002Fmaster\u002Fgraph\u002Fbadge.svg)](https:\u002F\u002Fcodecov.io\u002Fgh\u002Fappleboy\u002Fgorush)\n[![Go Report Card](https:\u002F\u002Fgoreportcard.com\u002Fbadge\u002Fgithub.com\u002Fappleboy\u002Fgorush)](https:\u002F\u002Fgoreportcard.com\u002Freport\u002Fgithub.com\u002Fappleboy\u002Fgorush)\n[![Docker Pulls](https:\u002F\u002Fimg.shields.io\u002Fdocker\u002Fpulls\u002Fappleboy\u002Fgorush.svg)](https:\u002F\u002Fhub.docker.com\u002Fr\u002Fappleboy\u002Fgorush\u002F)\n[![Netlify Status](https:\u002F\u002Fapi.netlify.com\u002Fapi\u002Fv1\u002Fbadges\u002F8ab14c9f-44fd-4d9a-8bba-f73f76d253b1\u002Fdeploy-status)](https:\u002F\u002Fapp.netlify.com\u002Fsites\u002Fgorush\u002Fdeploys)\n[![Financial Contributors on Open Collective](https:\u002F\u002Fopencollective.com\u002Fgorush\u002Fall\u002Fbadge.svg?label=financial+contributors)](https:\u002F\u002Fopencollective.com\u002Fgorush)\n\n## Quick Start\n\nGet started with gorush in 3 simple steps:\n\n```bash\n# 1. Download the latest binary\nwget https:\u002F\u002Fgithub.com\u002Fappleboy\u002Fgorush\u002Freleases\u002Fdownload\u002Fv1.18.9\u002Fgorush-1.18.9-linux-amd64 -O gorush\nchmod +x gorush\n\n# 2. Start the server (default port 8088)\n.\u002Fgorush\n\n# 3. Send your first notification\ncurl -X POST http:\u002F\u002Flocalhost:8088\u002Fapi\u002Fpush \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"notifications\": [{\n      \"tokens\": [\"your_device_token\"],\n      \"platform\": 2,\n      \"title\": \"Hello World\",\n      \"message\": \"Your first notification!\"\n    }]\n  }'\n```\n\n## Contents\n\n- [Quick Start](#quick-start) - Get up and running in 3 steps\n- [Support Platform](#support-platform) - iOS, Android, Huawei\n- [Features](#features) - What gorush can do\n- [Configuration](#configuration) - YAML config and options\n  - [Basic Configuration](#basic-configuration)\n  - [Advanced Configuration](#advanced-configuration)\n- [Installation](#installation) - Binary, package managers, Docker, source\n  - [Recommended: Install Script](#recommended-install-script)\n  - [Manual Download](#manual-download)\n  - [Package Managers](#package-managers)\n  - [Build from Source](#build-from-source)\n  - [Docker](#docker)\n- [Usage](#usage) - CLI commands and REST API examples\n  - [Starting the Server](#starting-the-server)\n  - [Command Line Notifications](#command-line-notifications)\n  - [REST API Usage](#rest-api-usage)\n  - [CLI Options Reference](#cli-options-reference)\n- [Web API](#web-api) - Complete API reference\n  - [Overview](#overview)\n  - [Send Notifications](#send-notifications---post-apipush)\n  - [Statistics APIs](#statistics-apis)\n  - [Request Parameters](#request-parameters)\n- [Deployment](#deployment) - Docker, Kubernetes, AWS Lambda, gRPC\n  - [Docker Deployment](#docker-deployment)\n  - [Kubernetes](#kubernetes)\n  - [AWS Lambda](#aws-lambda)\n  - [Netlify Functions](#netlify-functions)\n  - [gRPC Service](#grpc-service)\n- [FAQ](#faq) - Common issues and best practices\n  - [Common Issues](#common-issues)\n  - [Performance Tips](#performance-tips)\n  - [Security Best Practices](#security-best-practices)\n- [Stargazers over time](#stargazers-over-time)\n- [License](#license)\n\n## Support Platform\n\n📱 Platform codes: `1` = iOS (APNS), `2` = Android (FCM), `3` = Huawei (HMS)\n\n- [APNS](https:\u002F\u002Fdeveloper.apple.com\u002Fdocumentation\u002Fusernotifications)\n- [FCM](https:\u002F\u002Ffirebase.google.com\u002F)\n- [HMS](https:\u002F\u002Fdeveloper.huawei.com\u002Fconsumer\u002Fen\u002Fhms\u002F)\n\n[A live server on Netlify](https:\u002F\u002Fgorush.netlify.app\u002F) and get notification token on [Firebase Cloud Messaging web](https:\u002F\u002Ffcm-demo-88b40.web.app\u002F). You can use the token to send a notification to the device.\n\n```bash\ncurl -X POST \\\n     -H \"Content-Type: application\u002Fjson\" \\\n     -d '{\n  \"notifications\": [\n    {\n      \"tokens\": [\n        \"your_device_token\"\n      ],\n      \"platform\": 2,\n      \"title\": \"Test Title\",\n      \"message\": \"Test Message\"\n    }\n  ]\n}' \\\n  https:\u002F\u002Fgorush.netlify.app\u002Fapi\u002Fpush\n```\n\n## Features\n\n- Support [Firebase Cloud Messaging](https:\u002F\u002Ffirebase.google.com\u002Fdocs\u002Fcloud-messaging) using [go-fcm](https:\u002F\u002Fgithub.com\u002Fappleboy\u002Fgo-fcm) library for Android.\n- Support [HTTP\u002F2](https:\u002F\u002Fhttp2.github.io\u002F) Apple Push Notification Service using [apns2](https:\u002F\u002Fgithub.com\u002Fsideshow\u002Fapns2) library.\n- Support [HMS Push Service](https:\u002F\u002Fdeveloper.huawei.com\u002Fconsumer\u002Fen\u002Fhms\u002Fhuawei-pushkit) using [go-hms-push](https:\u002F\u002Fgithub.com\u002Fmsalihkarakasli\u002Fgo-hms-push) library for Huawei Devices.\n- Support [YAML](https:\u002F\u002Fgithub.com\u002Fgo-yaml\u002Fyaml) configuration.\n- Support command line to send single Android or iOS notification.\n- Support Web API to send push notification.\n- Support [HTTP\u002F2](https:\u002F\u002Fhttp2.github.io\u002F) or HTTP\u002F1.1 protocol.\n- Support notification queue and multiple workers.\n- Support `\u002Fapi\u002Fstat\u002Fapp` show notification success and failure counts.\n- Support `\u002Fapi\u002Fconfig` show your [YAML](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FYAML) config.\n- Support store app stat to memory, [Redis](http:\u002F\u002Fredis.io\u002F), [BoltDB](https:\u002F\u002Fgithub.com\u002Fboltdb\u002Fbolt), [BuntDB](https:\u002F\u002Fgithub.com\u002Ftidwall\u002Fbuntdb), [LevelDB](https:\u002F\u002Fgithub.com\u002Fsyndtr\u002Fgoleveldb) or [BadgerDB](https:\u002F\u002Fgithub.com\u002Fdgraph-io\u002Fbadger).\n- Support `p8`, `p12` or `pem` format of iOS certificate file.\n- Support `\u002Fsys\u002Fstats` show response time, status code count, etc.\n- Support for HTTP, HTTPS or SOCKS5 proxy.\n- Support retry send notification if server response is fail.\n- Support expose [prometheus](https:\u002F\u002Fprometheus.io\u002F) metrics.\n- Support install TLS certificates from [Let's Encrypt](https:\u002F\u002Fletsencrypt.org\u002F) automatically.\n- Support send notification through [RPC](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FRemote_procedure_call) protocol, we use [gRPC](https:\u002F\u002Fgrpc.io\u002F) as default framework.\n- Support running in Docker, [Kubernetes](https:\u002F\u002Fkubernetes.io\u002F) or [AWS Lambda](https:\u002F\u002Faws.amazon.com\u002Flambda) ([Native Support in Golang](https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fannouncing-go-support-for-aws-lambda\u002F))\n- Support graceful shutdown that workers and queue have been sent to APNs\u002FFCM before shutdown service.\n- Support different Queue as backend like [NSQ](https:\u002F\u002Fnsq.io\u002F), [NATS](https:\u002F\u002Fnats.io\u002F) or [Redis streams](https:\u002F\u002Fredis.io\u002Fdocs\u002Fmanual\u002Fdata-types\u002Fstreams\u002F), default engine is local [Channel](https:\u002F\u002Ftour.golang.org\u002Fconcurrency\u002F2).\n\n**Performance**: Average memory usage ~28MB. Supports high-throughput notification delivery with configurable workers and queue systems.\n\n## Configuration\n\nGorush uses YAML configuration. Create a `config.yml` file with your settings:\n\n### Basic Configuration\n\n```yaml\ncore:\n  port: \"8088\" # HTTP server port\n  worker_num: 0 # Workers (0 = CPU cores)\n  queue_num: 8192 # Queue size\n  mode: \"release\" # or \"debug\"\n\n# Enable platforms you need\nandroid:\n  enabled: true\n  key_path: \"fcm-key.json\" # FCM service account key\n\nios:\n  enabled: true\n  key_path: \"apns-key.pem\" # APNS certificate\n  production: true # Use production APNS\n\nhuawei:\n  enabled: false\n  appid: \"YOUR_APP_ID\"\n  appsecret: \"YOUR_APP_SECRET\"\n```\n\n### Advanced Configuration\n\n\u003Cdetails>\n\u003Csummary>Click to expand full configuration options\u003C\u002Fsummary>\n\n```yaml\ncore:\n  enabled: true\n  address: \"\"\n  shutdown_timeout: 30\n  port: \"8088\"\n  worker_num: 0\n  queue_num: 0\n  max_notification: 100\n  sync: false\n  feedback_hook_url: \"\"\n  feedback_timeout: 10\n  feedback_header:\n  mode: \"release\"\n  ssl: false\n  cert_path: \"cert.pem\"\n  key_path: \"key.pem\"\n  cert_base64: \"\"\n  key_base64: \"\"\n  http_proxy: \"\"\n  pid:\n    enabled: false\n    path: \"gorush.pid\"\n    override: true\n  auto_tls:\n    enabled: false\n    folder: \".cache\"\n    host: \"\"\n\ngrpc:\n  enabled: false\n  port: 9000\n\napi:\n  push_uri: \"\u002Fapi\u002Fpush\"\n  stat_go_uri: \"\u002Fapi\u002Fstat\u002Fgo\"\n  stat_app_uri: \"\u002Fapi\u002Fstat\u002Fapp\"\n  config_uri: \"\u002Fapi\u002Fconfig\"\n  sys_stat_uri: \"\u002Fsys\u002Fstats\"\n  metric_uri: \"\u002Fmetrics\"\n  health_uri: \"\u002Fhealthz\"\n\nandroid:\n  enabled: true\n  key_path: \"\"\n  credential: \"\"\n  max_retry: 0\n\nhuawei:\n  enabled: false\n  appsecret: \"YOUR_APP_SECRET\"\n  appid: \"YOUR_APP_ID\"\n  max_retry: 0\n\nqueue:\n  engine: \"local\"\n  nsq:\n    addr: 127.0.0.1:4150\n    topic: gorush\n    channel: gorush\n  nats:\n    addr: 127.0.0.1:4222\n    subj: gorush\n    queue: gorush\n  redis:\n    addr: 127.0.0.1:6379\n    group: gorush\n    consumer: gorush\n    stream_name: gorush\n    with_tls: false\n    username: \"\"\n    password: \"\"\n    db: 0\n\nios:\n  enabled: false\n  key_path: \"\"\n  key_base64: \"\"\n  key_type: \"pem\"\n  password: \"\"\n  production: false\n  max_concurrent_pushes: 100\n  max_retry: 0\n  key_id: \"\"\n  team_id: \"\"\n\nlog:\n  format: \"string\"\n  access_log: \"stdout\"\n  access_level: \"debug\"\n  error_log: \"stderr\"\n  error_level: \"error\"\n  hide_token: true\n  hide_messages: false\n\nstat:\n  engine: \"memory\"\n  redis:\n    cluster: false\n    addr: \"localhost:6379\"\n    username: \"\"\n    password: \"\"\n    db: 0\n  boltdb:\n    path: \"bolt.db\"\n    bucket: \"gorush\"\n  buntdb:\n    path: \"bunt.db\"\n  leveldb:\n    path: \"level.db\"\n  badgerdb:\n    path: \"badger.db\"\n```\n\nSee the complete [example config file](config\u002Ftestdata\u002Fconfig.yml).\n\n\u003C\u002Fdetails>\n\n## Installation\n\n### Recommended: Install Script\n\nThe easiest way to install gorush is using the install script:\n\n```bash\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fappleboy\u002Fgorush\u002Fmaster\u002Finstall.sh | bash\n```\n\nThis will automatically:\n\n- Detect your OS and architecture\n- Download the latest version\n- Install to `~\u002F.gorush\u002Fbin`\n- Add to your PATH\n\n#### Options\n\n```bash\n# Install specific version (replace X.Y.Z with the desired version, e.g., 1.19.2)\nVERSION=X.Y.Z curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fappleboy\u002Fgorush\u002Fmaster\u002Finstall.sh | bash\n\n# Custom install directory\nINSTALL_DIR=\u002Fusr\u002Flocal\u002Fbin curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fappleboy\u002Fgorush\u002Fmaster\u002Finstall.sh | bash\n\n# Skip SSL verification (not recommended)\nINSECURE=1 curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fappleboy\u002Fgorush\u002Fmaster\u002Finstall.sh | bash\n```\n\n### Manual Download\n\nDownload from [releases page](https:\u002F\u002Fgithub.com\u002Fappleboy\u002Fgorush\u002Freleases):\n\n### Package Managers\n\n#### Homebrew (macOS\u002FLinux)\n\n```bash\nbrew tap appleboy\u002Ftap\nbrew install gorush\n```\n\n#### Go Install\n\n```bash\n# Latest stable version\ngo install github.com\u002Fappleboy\u002Fgorush@latest\n\n# Development version\ngo install github.com\u002Fappleboy\u002Fgorush@master\n```\n\n### Build from Source\n\n**Requirements**: [Go 1.25+](https:\u002F\u002Fgo.dev\u002Fdl\u002F), [Git](http:\u002F\u002Fgit-scm.com\u002F)\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fappleboy\u002Fgorush.git\ncd gorush\nmake build\n# Binary will be in the root directory\n```\n\n### Docker\n\n```bash\n# Run directly\ndocker run --rm -p 8088:8088 appleboy\u002Fgorush\n\n# With custom config\ndocker run --rm -p 8088:8088 -v $(pwd)\u002Fconfig.yml:\u002Fhome\u002Fgorush\u002Fconfig.yml appleboy\u002Fgorush\n```\n\n## Usage\n\n### Starting the Server\n\n```bash\n# Use default config (port 8088)\n.\u002Fgorush\n\n# Use custom config file\n.\u002Fgorush -c config.yml\n\n# Set specific options\n.\u002Fgorush -p 9000 -c config.yml\n```\n\n### Command Line Notifications\n\n#### Android (FCM) Command Line\n\n**Prerequisites**: Generate FCM service account key from [Firebase Console](https:\u002F\u002Fconsole.firebase.google.com\u002Fproject\u002F_\u002Fsettings\u002Fserviceaccounts\u002Fadminsdk) → Settings → Service Accounts → Generate New Private Key.\n\n```bash\n# Android: Single notification\ngorush -android -m \"Hello Android!\" --fcm-key \"path\u002Fto\u002Ffcm-key.json\" -t \"device_token\"\n\n# Android: Using environment variable (recommended)\nexport GOOGLE_APPLICATION_CREDENTIALS=\"path\u002Fto\u002Ffcm-key.json\"\ngorush -android -m \"Hello Android!\" -t \"device_token\"\n\n# Android: Topic message\ngorush --android --topic \"news\" -m \"Breaking News!\" --fcm-key \"path\u002Fto\u002Ffcm-key.json\"\n```\n\n#### iOS (APNS) Command Line\n\n```bash\n# iOS: Development environment\ngorush -ios -m \"Hello iOS!\" -i \"cert.pem\" -t \"device_token\" --topic \"com.example.app\"\n\n# iOS: Production environment\ngorush -ios -m \"Hello iOS!\" -i \"cert.pem\" -t \"device_token\" --topic \"com.example.app\" -production\n\n# iOS: With password-protected certificate\ngorush -ios -m \"Hello iOS!\" -i \"cert.p12\" -P \"cert_password\" -t \"device_token\"\n```\n\n#### Huawei (HMS) Command Line\n\n```bash\n# Huawei: Single notification\ngorush -huawei -title \"Hello\" -m \"Hello Huawei!\" -hk \"APP_SECRET\" -hid \"APP_ID\" -t \"device_token\"\n\n# Huawei: Topic message\ngorush --huawei --topic \"updates\" -title \"Update\" -m \"New version available\" -hk \"APP_SECRET\" -hid \"APP_ID\"\n```\n\n### REST API Usage\n\n#### Health Check\n\n```bash\ncurl http:\u002F\u002Flocalhost:8088\u002Fhealthz\n```\n\n#### Send Notifications\n\n```bash\ncurl -X POST http:\u002F\u002Flocalhost:8088\u002Fapi\u002Fpush \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"notifications\": [{\n      \"tokens\": [\"device_token_1\", \"device_token_2\"],\n      \"platform\": 2,\n      \"title\": \"Hello World\",\n      \"message\": \"This is a test notification\"\n    }]\n  }'\n```\n\n#### Get Statistics\n\n```bash\n# Application stats\ncurl http:\u002F\u002Flocalhost:8088\u002Fapi\u002Fstat\u002Fapp\n\n# Go runtime stats\ncurl http:\u002F\u002Flocalhost:8088\u002Fapi\u002Fstat\u002Fgo\n\n# System stats\ncurl http:\u002F\u002Flocalhost:8088\u002Fsys\u002Fstats\n\n# Prometheus metrics\ncurl http:\u002F\u002Flocalhost:8088\u002Fmetrics\n```\n\n### CLI Options Reference\n\n\u003Cdetails>\n\u003Csummary>Click to expand all CLI options\u003C\u002Fsummary>\n\n```bash\nServer Options:\n    -A, --address \u003Caddress>          Address to bind (default: any)\n    -p, --port \u003Cport>                Use port for clients (default: 8088)\n    -c, --config \u003Cfile>              Configuration file path\n    -m, --message \u003Cmessage>          Notification message\n    -t, --token \u003Ctoken>              Notification token\n    -e, --engine \u003Cengine>            Storage engine (memory, redis ...)\n    --title \u003Ctitle>                  Notification title\n    --proxy \u003Cproxy>                  Proxy URL\n    --pid \u003Cpid path>                 Process identifier path\n    --redis-addr \u003Credis addr>        Redis addr (default: localhost:6379)\n    --ping                           healthy check command for container\n\niOS Options:\n    -i, --key \u003Cfile>                 certificate key file path\n    -P, --password \u003Cpassword>        certificate key password\n    --ios                            enabled iOS (default: false)\n    --production                     iOS production mode (default: false)\n\nAndroid Options:\n    --fcm-key \u003Cfcm_key_path>         FCM Key Path\n    --android                        enabled android (default: false)\n\nHuawei Options:\n    -hk, --hmskey \u003Chms_key>          HMS App Secret\n    -hid, --hmsid \u003Chms_id>           HMS App ID\n    --huawei                         enabled huawei (default: false)\n\nCommon Options:\n    --topic \u003Ctopic>                  iOS, Android or Huawei topic message\n    -h, --help                       Show this message\n    -V, --version                    Show version\n```\n\n\u003C\u002Fdetails>\n\n## Web API\n\n### Overview\n\nGorush provides RESTful APIs for sending notifications and monitoring system status:\n\n| Endpoint        | Method | Description                |\n| --------------- | ------ | -------------------------- |\n| `\u002Fapi\u002Fpush`     | POST   | Send push notifications    |\n| `\u002Fapi\u002Fstat\u002Fapp` | GET    | Application statistics     |\n| `\u002Fapi\u002Fstat\u002Fgo`  | GET    | Go runtime statistics      |\n| `\u002Fsys\u002Fstats`    | GET    | System performance metrics |\n| `\u002Fmetrics`      | GET    | Prometheus metrics         |\n| `\u002Fhealthz`      | GET    | Health check               |\n| `\u002Fapi\u002Fconfig`   | GET    | Current configuration      |\n\n### Send Notifications - `POST \u002Fapi\u002Fpush`\n\n#### Basic Examples\n\n##### iOS (APNS) API\n\n```json\n{\n  \"notifications\": [\n    {\n      \"tokens\": [\"ios_device_token\"],\n      \"platform\": 1,\n      \"title\": \"Hello iOS\",\n      \"message\": \"Hello World iOS!\"\n    }\n  ]\n}\n```\n\n##### Android (FCM) API\n\n```json\n{\n  \"notifications\": [\n    {\n      \"tokens\": [\"android_device_token\"],\n      \"platform\": 2,\n      \"title\": \"Hello Android\",\n      \"message\": \"Hello World Android!\"\n    }\n  ]\n}\n```\n\n##### Huawei (HMS) API\n\n```json\n{\n  \"notifications\": [\n    {\n      \"tokens\": [\"huawei_device_token\"],\n      \"platform\": 3,\n      \"title\": \"Hello Huawei\",\n      \"message\": \"Hello World Huawei!\"\n    }\n  ]\n}\n```\n\n#### Advanced Examples\n\n##### iOS with Custom Sound\n\n```json\n{\n  \"notifications\": [\n    {\n      \"tokens\": [\"ios_device_token\"],\n      \"platform\": 1,\n      \"title\": \"Important Alert\",\n      \"message\": \"Critical notification\",\n      \"apns\": {\n        \"payload\": {\n          \"aps\": {\n            \"sound\": {\n              \"name\": \"custom.wav\",\n              \"critical\": 1,\n              \"volume\": 0.8\n            }\n          }\n        }\n      }\n    }\n  ]\n}\n```\n\n##### Multiple Platforms\n\n```json\n{\n  \"notifications\": [\n    {\n      \"tokens\": [\"ios_token\"],\n      \"platform\": 1,\n      \"message\": \"Hello iOS!\"\n    },\n    {\n      \"tokens\": [\"android_token\"],\n      \"platform\": 2,\n      \"message\": \"Hello Android!\"\n    }\n  ]\n}\n```\n\n### Statistics APIs\n\n#### Application Stats - `GET \u002Fapi\u002Fstat\u002Fapp`\n\n```json\n{\n  \"version\": \"v1.18.9\",\n  \"busy_workers\": 0,\n  \"success_tasks\": 150,\n  \"failure_tasks\": 5,\n  \"submitted_tasks\": 155,\n  \"total_count\": 155,\n  \"ios\": {\n    \"push_success\": 80,\n    \"push_error\": 2\n  },\n  \"android\": {\n    \"push_success\": 65,\n    \"push_error\": 3\n  },\n  \"huawei\": {\n    \"push_success\": 5,\n    \"push_error\": 0\n  }\n}\n```\n\n#### System Performance - `GET \u002Fsys\u002Fstats`\n\n```json\n{\n  \"pid\": 12345,\n  \"uptime\": \"2h30m15s\",\n  \"total_response_time\": \"45.2ms\",\n  \"average_response_time\": \"1.2ms\",\n  \"total_status_code_count\": {\n    \"200\": 1450,\n    \"400\": 12,\n    \"500\": 3\n  }\n}\n```\n\n### Request Parameters\n\n\u003Cdetails>\n\u003Csummary>Complete API request parameters\u003C\u002Fsummary>\n\n#### Request body\n\nThe Request body must have a notifications array. The following is a parameter table for each notification.\n\n| name                    | type         | description                                                                                       | required | note                                                          |\n| ----------------------- | ------------ | ------------------------------------------------------------------------------------------------- | -------- | ------------------------------------------------------------- |\n| notif_id                | string       | A unique string that identifies the notification for async feedback                               | -        |                                                               |\n| tokens                  | string array | device tokens                                                                                     | o        |                                                               |\n| platform                | int          | platform(iOS,Android)                                                                             | o        | 1=iOS, 2=Android (Firebase), 3=Huawei (HMS)                   |\n| message                 | string       | message for notification                                                                          | -        |                                                               |\n| title                   | string       | notification title                                                                                | -        |                                                               |\n| priority                | string       | Sets the priority of the message.                                                                 | -        | `normal` or `high`                                            |\n| content_available       | bool         | data messages wake the app by default.                                                            | -        |                                                               |\n| sound                   | interface{}  | sound type                                                                                        | -        |                                                               |\n| data                    | string array | extensible partition                                                                              | -        | only Android and IOS                                          |\n| huawei_data             | string       | JSON object as string to extensible partition partition                                           | -        | only Huawei. See the [detail](#huawei-notification)           |\n| retry                   | int          | retry send notification if fail response from server. Value must be small than `max_retry` field. | -        |                                                               |\n| topic                   | string       | send messages to topics                                                                           |          |                                                               |\n| image                   | string       | image url to show in notification                                                                 | -        | only Android and Huawei                                       |\n| to                      | string       | The value must be a registration token, notification key, or topic.                               | -        | only Android                                                  |\n| collapse_key            | string       | a key for collapsing notifications                                                                | -        | only Android                                                  |\n| huawei_collapse_key     | int          | a key integer for collapsing notifications                                                        | -        | only Huawei See the [detail](#huawei-notification)            |\n| delay_while_idle        | bool         | a flag for device idling                                                                          | -        | only Android                                                  |\n| time_to_live            | uint         | expiration of message kept on FCM storage                                                         | -        | only Android                                                  |\n| huawei_ttl              | string       | expiration of message kept on HMS storage                                                         | -        | only Huawei See the [detail](#huawei-notification)            |\n| restricted_package_name | string       | the package name of the application                                                               | -        | only Android                                                  |\n| dry_run                 | bool         | allows developers to test a request without actually sending a message                            | -        | only Android                                                  |\n| notification            | string array | payload of a FCM message                                                                          | -        | only Android. See the [detail](#android-notification-payload) |\n| huawei_notification     | string array | payload of a HMS message                                                                          | -        | only Huawei. See the [detail](#huawei-notification)           |\n| app_id                  | string       | hms app id                                                                                        | -        | only Huawei. See the [detail](#huawei-notification)           |\n| bi_tag                  | string       | Tag of a message in a batch delivery task                                                         | -        | only Huawei. See the [detail](#huawei-notification)           |\n| fast_app_target         | int          | State of a mini program when a quick app sends a data message.                                    | -        | only Huawei. See the [detail](#huawei-notification)           |\n| expiration              | int          | expiration for notification                                                                       | -        | only iOS                                                      |\n| apns_id                 | string       | A canonical UUID that identifies the notification                                                 | -        | only iOS                                                      |\n| collapse_id             | string       | An identifier you use to coalesce multiple notifications into a single notification for the user  | -        | only iOS                                                      |\n| push_type               | string       | The type of the notification. The value of this header is alert or background.                    | -        | only iOS                                                      |\n| badge                   | int          | badge count                                                                                       | -        | only iOS                                                      |\n| category                | string       | the UIMutableUserNotificationCategory object                                                      | -        | only iOS                                                      |\n| alert                   | string array | payload of a iOS message                                                                          | -        | only iOS. See the [detail](#ios-alert-payload)                |\n| mutable_content         | bool         | enable Notification Service app extension.                                                        | -        | only iOS(10.0+).                                              |\n| name                    | string       | sets the name value on the aps sound dictionary.                                                  | -        | only iOS                                                      |\n| volume                  | float32      | sets the volume value on the aps sound dictionary.                                                | -        | only iOS                                                      |\n| interruption_level      | string       | defines the interruption level for the push notification.                                         | -        | only iOS(15.0+)                                               |\n| content-state           | string array | dynamic and custom content for live-activity notification.                                        | -        | only iOS(16.1+)                                               |\n| timestamp               | int          | the UNIX time when sending the remote notification that updates or ends a Live Activity           | -        | only iOS(16.1+)                                               |\n| event                   | string       | describes whether you update or end an ongoing Live Activity                                      | -        | only iOS(16.1+)                                               |\n| stale-date              | int          | the date which a Live Activity becomes stale, or out of date                                      | -        | only iOS(16.1+)                                               |\n| dismissal-date          | int          | the UNIX time -timestamp- which a Live Activity will end and will be removed                      | -        | only iOS(16.1+)                                               |\n\n### iOS alert payload\n\n| name           | type             | description                                                                                      | required | note |\n| -------------- | ---------------- | ------------------------------------------------------------------------------------------------ | -------- | ---- |\n| title          | string           | Apple Watch & Safari display this string as part of the notification interface.                  | -        |      |\n| body           | string           | The text of the alert message.                                                                   | -        |      |\n| subtitle       | string           | Apple Watch & Safari display this string as part of the notification interface.                  | -        |      |\n| action         | string           | The label of the action button. This one is required for Safari Push Notifications.              | -        |      |\n| action-loc-key | string           | If a string is specified, the system displays an alert that includes the Close and View buttons. | -        |      |\n| launch-image   | string           | The filename of an image file in the app bundle, with or without the filename extension.         | -        |      |\n| loc-args       | array of strings | Variable string values to appear in place of the format specifiers in loc-key.                   | -        |      |\n| loc-key        | string           | A key to an alert-message string in a Localizable.strings file for the current localization.     | -        |      |\n| title-loc-args | array of strings | Variable string values to appear in place of the format specifiers in title-loc-key.             | -        |      |\n| title-loc-key  | string           | The key to a title string in the Localizable.strings file for the current localization.          | -        |      |\n\nSee more detail about [APNs Remote Notification Payload](https:\u002F\u002Fdeveloper.apple.com\u002Flibrary\u002Fcontent\u002Fdocumentation\u002FNetworkingInternet\u002FConceptual\u002FRemoteNotificationsPG\u002FPayloadKeyReference.html).\n\n### iOS sound payload\n\n| name     | type    | description                                          | required | note |\n| -------- | ------- | ---------------------------------------------------- | -------- | ---- |\n| name     | string  | sets the name value on the aps sound dictionary.     | -        |      |\n| volume   | float32 | sets the volume value on the aps sound dictionary.   | -        |      |\n| critical | int     | sets the critical value on the aps sound dictionary. | -        |      |\n\nrequest format:\n\n```json\n{\n  \"sound\": {\n    \"critical\": 1,\n    \"name\": \"default\",\n    \"volume\": 2.0\n  }\n}\n```\n\n### Android notification payload\n\n| name           | type   | description                                                                                               | required | note |\n| -------------- | ------ | --------------------------------------------------------------------------------------------------------- | -------- | ---- |\n| icon           | string | Indicates notification icon.                                                                              | -        |      |\n| tag            | string | Indicates whether each notification message results in a new entry on the notification center on Android. | -        |      |\n| color          | string | Indicates color of the icon, expressed in #rrggbb format                                                  | -        |      |\n| click_action   | string | The action associated with a user click on the notification.                                              | -        |      |\n| body_loc_key   | string | Indicates the key to the body string for localization.                                                    | -        |      |\n| body_loc_args  | string | Indicates the string value to replace format specifiers in body string for localization.                  | -        |      |\n| title_loc_key  | string | Indicates the key to the title string for localization.                                                   | -        |      |\n| title_loc_args | string | Indicates the string value to replace format specifiers in title string for localization.                 | -        |      |\n\nSee more detail about [Firebase Cloud Messaging HTTP Protocol reference](https:\u002F\u002Ffirebase.google.com\u002Fdocs\u002Fcloud-messaging\u002Fhttp-server-ref#send-downstream).\n\n### Huawei notification\n\n1. app_id: app id from huawei developer console\n2. bi_tag:\n3. fast_app_target:\n4. huawei_data: mapped to data\n5. huawei_notification: mapped to notification\n6. huawei_ttl: mapped to ttl\n7. huawei_collapse_key: mapped to collapse_key\n\nSee more detail about [Huawei Mobulse Services Push API reference](https:\u002F\u002Fdeveloper.huawei.com\u002Fconsumer\u002Fen\u002Fdoc\u002Fdevelopment\u002FHMS-References\u002Fpush-sendapi).\n\n### iOS Example\n\nSend normal notification.\n\n```json\n{\n  \"notifications\": [\n    {\n      \"tokens\": [\"token_a\", \"token_b\"],\n      \"platform\": 1,\n      \"message\": \"Hello World iOS!\"\n    }\n  ]\n}\n```\n\nThe following payload asks the system to display an alert with a Close button and a single action button.The title and body keys provide the contents of the alert. The “PLAY” string is used to retrieve a localized string from the appropriate Localizable.strings file of the app. The resulting string is used by the alert as the title of an action button. This payload also asks the system to badge the app’s icon with the number 5.\n\n```json\n{\n  \"notifications\": [\n    {\n      \"tokens\": [\"token_a\", \"token_b\"],\n      \"platform\": 1,\n      \"badge\": 5,\n      \"alert\": {\n        \"title\": \"Game Request\",\n        \"body\": \"Bob wants to play poker\",\n        \"action-loc-key\": \"PLAY\"\n      }\n    }\n  ]\n}\n```\n\nThe following payload specifies that the device should display an alert message, plays a sound, and badges the app’s icon.\n\n```json\n{\n  \"notifications\": [\n    {\n      \"tokens\": [\"token_a\", \"token_b\"],\n      \"platform\": 1,\n      \"message\": \"You got your emails.\",\n      \"badge\": 9,\n      \"sound\": {\n        \"critical\": 1,\n        \"name\": \"default\",\n        \"volume\": 1.0\n      }\n    }\n  ]\n}\n```\n\nAdd other fields which user defined via `data` field.\n\n```json\n{\n  \"notifications\": [\n    {\n      \"tokens\": [\"token_a\", \"token_b\"],\n      \"platform\": 1,\n      \"message\": \"Hello World iOS!\",\n      \"data\": {\n        \"key1\": \"welcome\",\n        \"key2\": 2\n      }\n    }\n  ]\n}\n```\n\nSupport send notification from different environment. See the detail of [issue](https:\u002F\u002Fgithub.com\u002Fappleboy\u002Fgorush\u002Fissues\u002F246).\n\n```diff\n{\n  \"notifications\": [\n    {\n      \"tokens\": [\"token_a\", \"token_b\"],\n      \"platform\": 1,\n+     \"production\": true,\n      \"message\": \"Hello World iOS Production!\"\n    },\n    {\n      \"tokens\": [\"token_a\", \"token_b\"],\n      \"platform\": 1,\n+     \"development\": true,\n      \"message\": \"Hello World iOS Sandbox!\"\n    }\n  ]\n}\n```\n\n### Android Example\n\nSend normal notification.\n\n```json\n{\n  \"notifications\": [\n    {\n      \"tokens\": [\"token_a\", \"token_b\"],\n      \"platform\": 2,\n      \"message\": \"Hello World Android!\",\n      \"title\": \"You got message\"\n    }\n  ]\n}\n```\n\nLabel associated with the message's analytics data.\n\n```json\n{\n  \"notifications\": [\n    {\n      \"tokens\": [\"token_a\", \"token_b\"],\n      \"platform\": 2,\n      \"message\": \"Hello World Android!\",\n      \"title\": \"You got message\",\n      \"fcm_options\": {\n        \"analytics_label\": \"example\"\n      }\n    }\n  ]\n}\n```\n\nAdd `notification` payload.\n\n```json\n{\n  \"notifications\": [\n    {\n      \"tokens\": [\"token_a\", \"token_b\"],\n      \"platform\": 2,\n      \"message\": \"Hello World Android!\",\n      \"title\": \"You got message\",\n      \"notification\": {\n        \"icon\": \"myicon\",\n        \"color\": \"#112244\"\n      }\n    }\n  ]\n}\n```\n\nAdd other fields which user defined via `data` field.\n\n```json\n{\n  \"notifications\": [\n    {\n      \"tokens\": [\"token_a\", \"token_b\"],\n      \"platform\": 2,\n      \"message\": \"Hello World Android!\",\n      \"title\": \"You got message\",\n      \"data\": {\n        \"Nick\": \"Mario\",\n        \"body\": \"great match!\",\n        \"Room\": \"PortugalVSDenmark\"\n      }\n    }\n  ]\n}\n```\n\nSend messages to topic\n\n```json\n{\n  \"notifications\": [\n    {\n      \"topic\": \"highScores\",\n      \"platform\": 2,\n      \"message\": \"This is a Firebase Cloud Messaging Topic Message\"\n    }\n  ]\n}\n```\n\n### Huawei Example\n\nSend normal notification.\n\n```json\n{\n  \"notifications\": [\n    {\n      \"tokens\": [\"token_a\", \"token_b\"],\n      \"platform\": 3,\n      \"message\": \"Hello World Huawei!\",\n      \"title\": \"You got message\"\n    }\n  ]\n}\n```\n\nAdd `notification` payload.\n\n```json\n{\n  \"notifications\": [\n    {\n      \"tokens\": [\"token_a\", \"token_b\"],\n      \"platform\": 3,\n      \"message\": \"Hello World Huawei!\",\n      \"title\": \"You got message\",\n      \"huawei_notification\": {\n        \"icon\": \"myicon\",\n        \"color\": \"#112244\"\n      }\n    }\n  ]\n}\n```\n\nAdd other fields which user defined via `huawei_data` field.\n\n```json\n{\n  \"notifications\": [\n    {\n      \"tokens\": [\"token_a\", \"token_b\"],\n      \"platform\": 3,\n      \"huawei_data\": \"{'title' : 'Mario','message' : 'great match!', 'Room' : 'PortugalVSDenmark'}\"\n    }\n  ]\n}\n```\n\nSend messages to topics\n\n```json\n{\n  \"notifications\": [\n    {\n      \"topic\": \"foo-bar\",\n      \"platform\": 3,\n      \"message\": \"This is a Huawei Mobile Services Topic Message\",\n      \"title\": \"You got message\"\n    }\n  ]\n}\n```\n\n### Response body\n\nError response message table:\n\n| status code | message                                    |\n| ----------- | ------------------------------------------ |\n| 400         | Missing `notifications` field.             |\n| 400         | Notifications field is empty.              |\n| 400         | Number of notifications(50) over limit(10) |\n\nSuccess response:\n\n```json\n{\n  \"counts\": 60,\n  \"logs\": [],\n  \"success\": \"ok\"\n}\n```\n\nIf you need error logs from sending fail notifications, please set a `feedback_hook_url` and `feedback_header` for custom header. The server with send the failing logs asynchronously to your API as `POST` requests.\n\n```diff\ncore:\n  port: \"8088\" # ignore this port number if auto_tls is enabled (listen 443).\n  worker_num: 0 # default worker number is runtime.NumCPU()\n  queue_num: 0 # default queue number is 8192\n  max_notification: 100\n  sync: false\n- feedback_hook_url: \"\"\n+ feedback_hook_url: \"https:\u002F\u002Fexample.com\u002Fapi\u002Fhook\"\n+ feedback_header:\n+   - x-gorush-token:4e989115e09680f44a645519fed6a976\n```\n\nYou can also switch to **sync** mode by setting the `sync` value as `true` on yaml config. It only works when the queue engine is local.\n\n```diff\ncore:\n  port: \"8088\" # ignore this port number if auto_tls is enabled (listen 443).\n  worker_num: 0 # default worker number is runtime.NumCPU()\n  queue_num: 0 # default queue number is 8192\n  max_notification: 100\n- sync: false\n+ sync: true\n```\n\nSee the following error format.\n\n```json\n{\n  \"counts\": 60,\n  \"logs\": [\n    {\n      \"type\": \"failed-push\",\n      \"platform\": \"android\",\n      \"token\": \"*******\",\n      \"message\": \"Hello World Android!\",\n      \"error\": \"InvalidRegistration\"\n    },\n    {\n      \"type\": \"failed-push\",\n      \"platform\": \"ios\",\n      \"token\": \"*****\",\n      \"message\": \"Hello World iOS1111!\",\n      \"error\": \"Post https:\u002F\u002Fapi.push.apple.com\u002F3\u002Fdevice\u002Fbbbbb: remote error: tls: revoked certificate\"\n    },\n    {\n      \"type\": \"failed-push\",\n      \"platform\": \"ios\",\n      \"token\": \"*******\",\n      \"message\": \"Hello World iOS222!\",\n      \"error\": \"Post https:\u002F\u002Fapi.push.apple.com\u002F3\u002Fdevice\u002Ftoken_b: remote error: tls: revoked certificate\"\n    }\n  ],\n  \"success\": \"ok\"\n}\n```\n\n## Deployment\n\n### Docker Deployment\n\n#### Docker Quick Start\n\n```bash\n# Run with default config\ndocker run --rm -p 8088:8088 appleboy\u002Fgorush\n\n# Run with custom config\ndocker run --rm -p 8088:8088 \\\n  -v $(pwd)\u002Fconfig.yml:\u002Fhome\u002Fgorush\u002Fconfig.yml \\\n  appleboy\u002Fgorush\n\n# Run in background\ndocker run -d --name gorush -p 8088:8088 appleboy\u002Fgorush\n```\n\n#### Docker Compose\n\n```yaml\nversion: \"3\"\nservices:\n  gorush:\n    image: appleboy\u002Fgorush\n    ports:\n      - \"8088:8088\"\n    volumes:\n      - .\u002Fconfig.yml:\u002Fhome\u002Fgorush\u002Fconfig.yml\n  redis:\n    image: redis:alpine\n    ports:\n      - \"6379:6379\"\n```\n\n### Kubernetes\n\n#### Quick Deploy\n\n```bash\n# Create namespace and config\nkubectl create -f k8s\u002Fgorush-namespace.yaml\nkubectl create -f k8s\u002Fgorush-configmap.yaml\n\n# Deploy Redis (optional, for queue\u002Fstats)\nkubectl create -f k8s\u002Fgorush-redis-deployment.yaml\nkubectl create -f k8s\u002Fgorush-redis-service.yaml\n\n# Deploy Gorush\nkubectl create -f k8s\u002Fgorush-deployment.yaml\nkubectl create -f k8s\u002Fgorush-service.yaml\n```\n\n#### AWS Load Balancer\n\nFor AWS ELB:\n\n```bash\nkubectl create -f k8s\u002Fgorush-service.yaml\n```\n\nFor AWS ALB, modify service type:\n\n```yaml\n# k8s\u002Fgorush-service.yaml\nspec:\n  type: NodePort # Change from LoadBalancer\n```\n\nThen deploy ingress:\n\n```bash\nkubectl create -f k8s\u002Fgorush-aws-alb-ingress.yaml\n```\n\n#### Cleanup\n\n```bash\nkubectl delete -f k8s\u002F\n```\n\n### AWS Lambda\n\n#### Build and Deploy\n\n```bash\n# Build Lambda binary\ngit clone https:\u002F\u002Fgithub.com\u002Fappleboy\u002Fgorush.git\ncd gorush\nmake build_linux_lambda\n\n# Create deployment package\nzip deployment.zip release\u002Flinux\u002Flambda\u002Fgorush\n\n# Deploy with AWS CLI\naws lambda update-function-code \\\n  --function-name gorush \\\n  --zip-file fileb:\u002F\u002Fdeployment.zip\n```\n\n#### Automated Deployment\n\nUsing [drone-lambda](https:\u002F\u002Fgithub.com\u002Fappleboy\u002Fdrone-lambda):\n\n```bash\nAWS_ACCESS_KEY_ID=your_key \\\nAWS_SECRET_ACCESS_KEY=your_secret \\\ndrone-lambda --region us-west-2 \\\n  --function-name gorush \\\n  --source release\u002Flinux\u002Flambda\u002Fgorush\n```\n\n### Netlify Functions\n\nAlternative serverless deployment without AWS:\n\n```toml\n# netlify.toml\n[build]\ncommand = \"make build_linux_lambda\"\nfunctions = \"release\u002Flinux\u002Flambda\"\n\n[build.environment]\nGO_VERSION = \"1.24\"\n\n[[redirects]]\nfrom = \"\u002F*\"\nstatus = 200\nto = \"\u002F.netlify\u002Ffunctions\u002Fgorush\u002F:splat\"\n```\n\n### gRPC Service\n\nEnable gRPC server for high-performance applications:\n\n```yaml\n# config.yml\ngrpc:\n  enabled: true\n  port: 9000\n```\n\nOr via environment:\n\n```bash\nGORUSH_GRPC_ENABLED=true GORUSH_GRPC_PORT=9000 gorush\n```\n\n#### gRPC Client Example (Go)\n\n```go\npackage main\n\nimport (\n    \"context\"\n    \"log\"\n    \"github.com\u002Fappleboy\u002Fgorush\u002Frpc\u002Fproto\"\n    \"google.golang.org\u002Fgrpc\"\n    \"google.golang.org\u002Fgrpc\u002Fcredentials\u002Finsecure\"\n)\n\nfunc main() {\n    conn, err := grpc.NewClient(\"localhost:9000\", grpc.WithTransportCredentials(insecure.NewCredentials()))\n    if err != nil {\n        log.Fatal(err)\n    }\n    defer conn.Close()\n\n    client := proto.NewGorushClient(conn)\n    resp, err := client.Send(context.Background(), &proto.NotificationRequest{\n        Platform: 2,\n        Tokens:   []string{\"device_token\"},\n        Message:  \"Hello gRPC!\",\n        Title:    \"Test Notification\",\n    })\n\n    if err != nil {\n        log.Fatal(err)\n    }\n    log.Printf(\"Success: %v, Count: %d\", resp.Success, resp.Counts)\n}\n```\n\n## FAQ\n\n### Common Issues\n\n#### Q: How do I get FCM credentials?\n\nA: Go to [Firebase Console](https:\u002F\u002Fconsole.firebase.google.com\u002F) → Project Settings → Service Accounts → Generate New Private Key. Download the JSON file.\n\n#### Q: iOS notifications not working in production?\n\nA: Make sure you:\n\n1. Use production APNS certificates (`production: true`)\n2. Set correct bundle ID in certificate\n3. Test with production app build\n\n#### Q: Getting \"certificate verify failed\" error?\n\nA: This usually means:\n\n- Wrong certificate format (use `.pem` or `.p12`)\n- Certificate expired\n- Wrong environment (dev vs production)\n\n#### Q: How to handle large notification volumes?\n\nA: Configure workers and queue settings:\n\n```yaml\ncore:\n  worker_num: 8 # Increase workers\n  queue_num: 16384 # Increase queue size\nqueue:\n  engine: \"redis\" # Use external queue\n```\n\n#### Q: Can I send to multiple platforms at once?\n\nA: Yes, include multiple notification objects in the request:\n\n```json\n{\n  \"notifications\": [\n    { \"platform\": 1, \"tokens\": [\"ios_token\"], \"message\": \"iOS\" },\n    { \"platform\": 2, \"tokens\": [\"android_token\"], \"message\": \"Android\" }\n  ]\n}\n```\n\n#### Q: How to monitor notification failures?\n\nA: Enable sync mode or feedback webhook:\n\n```yaml\ncore:\n  sync: true # Get immediate response\n  feedback_hook_url: \"https:\u002F\u002Fyour-api\" # Async webhook\n```\n\n#### Q: What's the difference between platforms?\n\nA: Platform codes: `1` = iOS (APNS), `2` = Android (FCM), `3` = Huawei (HMS)\n\n### Performance Tips\n\n- Use Redis for queue and stats storage in production\n- Enable gRPC for better performance\n- Set appropriate worker numbers based on CPU cores\n- Use connection pooling for high-volume scenarios\n\n### Security Best Practices\n\n- Store credentials as files, not in config\n- Use environment variables for sensitive data\n- Enable SSL\u002FTLS in production\n- Rotate certificates before expiration\n- Monitor failed notifications for security issues\n\n## Stargazers over time\n\n[![Stargazers over time](https:\u002F\u002Fstarchart.cc\u002Fappleboy\u002Fgorush.svg)](https:\u002F\u002Fstarchart.cc\u002Fappleboy\u002Fgorush)\n\n## License\n\nCopyright 2026 Bo-Yi Wu [@appleboy](https:\u002F\u002Fgithub.com\u002Fappleboy).\n\nLicensed under the MIT License.\n","gorush 是一个用 Go 语言编写的推送通知服务器。它基于 Gin 框架构建，支持 iOS、Android 和华为平台的推送服务，提供 REST API 接口用于发送通知，并具备统计功能。项目采用 MIT 许可证发布，拥有活跃的社区支持与维护。适合需要跨平台移动应用消息推送服务的应用场景使用，如新闻资讯、社交软件等希望实现即时通讯功能的产品。",2,"2026-06-11 03:02:42","top_language"]