Please sign in to comment.
RCTLocationObserver: Fix reporting of timeout error
Summary: Fixes an issue where location request timeout errors always reported "Unable to fetch location within **0s**". Previously we had `@"Unable to fetch location within %zds.", (NSInteger)(timer.timeInterval * 1000.0)` but from the [NSTimer.timeInterval docs](https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSTimer_Class/#//apple_ref/occ/instp/NSTimer/timeInterval) "If the receiver is a non-repeating timer, returns 0 even if a time interval was set.". Change to use `request.options.timeout` instead, which is a `Double` defaulting to `INFINITY`. Tested on an iOS simulator. Closes #9888 Differential Revision: D3902788 Pulled By: javache fbshipit-source-id: aef717d6c39f3177cb7056a17adc35c1bfd94132
- Loading branch information...
Showing with 1 addition and 1 deletion.