Bug 171277

Summary: navigator.onLine always returns true on iOS
Product: WebKit Reporter: sudheer Kumar <pskr.1894>
Component: Page LoadingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Major CC: achristensen, ap, beidson, bfulgham, jond, pskr.1894, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 9   
Hardware: iPhone / iPad   
OS: iOS 9.3   
See Also: https://bugs.webkit.org/show_bug.cgi?id=225645

sudheer Kumar
Reported 2017-04-25 09:36:14 PDT
My application is also works on offline, and i am using navigator.onLine to know whether browser is in online or offline. This API is working in desktop chrome browser (windows & Mac), safari browser(Mac) & android chrome browsers. But in iOS this API is always returning as TRUE & application is not turning to offline mode in both Safari & Chrome browsers. Please suggest how to know whether the chrome browser is in offline or online in iOS (iPhone & iPad). Thank you Regards Sudheer Kumar
Attachments
Radar WebKit Bug Importer
Comment 1 2017-04-25 18:37:38 PDT
Brady Eidson
Comment 2 2017-04-26 16:15:02 PDT
(In reply to sudheer Kumar from comment #0) > But in iOS this API is always returning as TRUE & application is not turning > to offline mode in both Safari & Chrome browsers. I note a lack of instructions to reproduce what you're doing where you expect it to be returning offline. How exactly are you going "offline"?
Note You need to log in before you can comment on or make changes to this bug.