Return duration as integer in milliseconds for parity with progress (and Android). Fix deprecated iOS 3.2 checks.