appleboy / gorush

A push notification server written in Go (Golang).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: api/push support assign different environment ?

vocolboy opened this issue · comments

commented

As title , TestFlight needs support on both sides .

If can support it , it will be very useful

{
  "notifications": [
    {
      "tokens": ["token_a", "token_b"],
      "platform": 1,
      "production": true,
      "message": "Hello World iOS Production!"
    },
    {
      "tokens": ["token_a", "token_b"],
      "platform": 1,
      "production": false,
      "message": "Hello World iOS Sandbox!"
    },
    .....
  ]
}

implementation in #301

{
  "notifications": [
    {
      "tokens": ["token_a", "token_b"],
      "platform": 1,
+     "production": true,
      "message": "Hello World iOS Production!"
    },
    {
      "tokens": ["token_a", "token_b"],
      "platform": 1,
+     "development": true,
      "message": "Hello World iOS Sandbox!"
    },
    .....
  ]
}

the default setting in your config.yml.