~/talk

Developing and testing permissions flows

Talkat iOS Conf SG 2017 · 2017-10-19..10-20· [ios]
slides:none on file

Describes building a singleton permissions helper for camera, photo library and microphone with dependency injection, plus a small photo wrapper and 13 unit tests that verify alert logic. Explains why KIF isn’t enough, why real devices are required, and how XCUITest uses a XCUITest interruption monitor to handle system alerts while UI recording finds element identifiers. Details include fake alerts that deep‑link to Settings, the app relaunching back to the feed, and trade‑offs made to balance UX and test coverage.

AI-written summary · about

  1. 0:00Introduction
  2. 1:35How we implemented it
  3. 6:01The second problem
  4. 7:53The solution
  5. 9:19What are permissions alerts
  6. 10:17Fake alerts vs real alerts
  7. 13:15Design best practices
  8. 17:31Simulator limitations
  9. 19:31UI interruption monitor
  10. 21:40Fake alerts
  11. 22:46Scenario tests
  12. 25:18Outro
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.