Commit 7831722
Connect to APNs sandbox server in development (#74)
config/push.yml left connect_to_development_server commented out, so the
gem connected to the production APNs host in every environment. A Xcode
debug build registers a sandbox device token; pushing it to production
APNs returns 400 BadDeviceToken, which the gem raises as TokenError and
then destroys the device via the default rescue_from. The visible symptom
was an iOS device record vanishing as soon as any notification fired
(e.g. an Android client completing an item_tag).
Enable the gem's recommended default so local development talks to the
APNs sandbox while staging/production use the production host.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5b0e314 commit 7831722
2 files changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments