Alok Singh, App Dev Notes
iOS app development articles by Alok Singh. Originals at bestlatestapps.com.
Text Plus Audio, Fully Offline: Building a Prayer App with AVAudioPlayer and Lock-Screen Controls
Originally published at https://bestlatestapps.com/blog/text-plus-audio-fully-offline/ Bundled recitation audio, verse-by-verse highlighting from a cue sheet, background playback, Now Playing controls and the interruptions you must handle, on an app that still supports
Originally published at https://bestlatestapps.com/blog/text-plus-audio-fully-offline/ Bundled recitation audio, verse-by-verse highlighting from a cue sheet, background playback, Now Playing controls and the interruptions you must handle, on an app that still supports iOS 11 Some apps are used in a very particular moment. A prayer app is opened in the morning, often
The Device Side of APNs: Building a Push Notification Test Client in Swift
Originally published at https://bestlatestapps.com/blog/the-device-side-of-apns/ Permission, registration, device tokens, foreground presentation and payload inspection, plus the exact HTTP/2 request your backend needs to send Every backend developer who has implemented Apple
Originally published at https://bestlatestapps.com/blog/the-device-side-of-apns/ Permission, registration, device tokens, foreground presentation and payload inspection, plus the exact HTTP/2 request your backend needs to send Every backend developer who has implemented Apple push notifications knows this moment. The server code is written and the request goes out. APNs answers 200, and nothing
The Sending Side of APNs: A Mac Push Tester with Keychain Certificates, URLSession Client Auth and HTTP/2
Originally published at https://bestlatestapps.com/blog/the-sending-side-of-apns/ Finding push certificates in the Keychain, importing .p12 files, answering APNs's client-certificate challenge in URLSession, building the exact request (path, headers, payload), sandbox vs production, silent
Originally published at https://bestlatestapps.com/blog/the-sending-side-of-apns/ Finding push certificates in the Keychain, importing .p12 files, answering APNs's client-certificate challenge in URLSession, building the exact request (path, headers, payload), sandbox vs production, silent pushes, and reading APNs's error responses, all without a server In my article on Push Notification – Client, I covered
Tic Tac Toe in SwiftUI, Done Properly: Value-Type Game State, Win Detection and an Unbeatable Minimax Opponent
Originally published at https://bestlatestapps.com/blog/tic-tac-toe-in-swiftui-done-properly/ The smallest game worth architecting: an immutable board, testable rules, a view that just renders state, and the classic AI you can bolt on in 40
Originally published at https://bestlatestapps.com/blog/tic-tac-toe-in-swiftui-done-properly/ The smallest game worth architecting: an immutable board, testable rules, a view that just renders state, and the classic AI you can bolt on in 40 lines Tic tac toe is the hello world of game development, which is exactly why it's worth doing properly. It's