Skip to content

Instantly share code, notes, and snippets.

View deremakif's full-sized avatar

Mehmet Akif DERE deremakif

View GitHub Profile
@deremakif
deremakif / testflight.sh
Created April 20, 2022 07:44 — forked from keith/testflight.sh
Upload an ipa to testflight using altool
#!/bin/bash
set -euo pipefail
xcrun altool --upload-app --type ios --file "path/to/foo.ipa" --username "$ITC_USER" --password "$ITC_PASSWORD"
@deremakif
deremakif / apns.sh
Created June 1, 2022 10:13 — forked from greencoder/apns.sh
Curl the APNS http/2 API
# Note: You MUST have curl 7.47+ with http/2 support compiled in
curl -v \
-d '{"aps":{"alert":"<message>","badge":42}}' \
-H "apns-topic: <bundle id>" \
-H "apns-priority: 10" \
--http2 \
--cert <certificate file> \
https://api.development.push.apple.com/3/device/<device token>