Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Question: api/push support assign different environment ? #246

Closed
vocolboy opened this issue Jul 6, 2017 · 1 comment · Fixed by #301
Closed

Question: api/push support assign different environment ? #246

vocolboy opened this issue Jul 6, 2017 · 1 comment · Fixed by #301
Assignees
Labels

Comments

@vocolboy
Copy link

vocolboy commented Jul 6, 2017

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!"
    },
    .....
  ]
}

@appleboy
Copy link
Owner

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants