Skip to content

Instantly share code, notes, and snippets.

@sweldon
Last active April 23, 2020 18:46
Show Gist options
  • Save sweldon/757608823d203074c933349335a882c7 to your computer and use it in GitHub Desktop.
Save sweldon/757608823d203074c933349335a882c7 to your computer and use it in GitHub Desktop.
Example APNS for Testing IOS Push
{
"aps": {
"alert": {
"title": "Comment mention",
"body": "Comment mention body",
},
"badge": 1
},
"Simulator Target Bundle": "bundle_id.com",
"push_type": "comment",
"holiday_id": 234,
"comment_id": 275,
"comment_user": "john",
}
// Find device id with: xcrun instruments -s devices
// Send push with: xcrun simctl push <device_id> <bundle_id> ~/path/to/example_test_ios_push.apns
// In Xamarin access nested keys with: "aps.alert.body" for example.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment