Skip to content

Map goes blank when internet connection is lost  #61

@elazarza

Description

@elazarza

Bug Report

Plugin(s)

@capacitor/[email protected]

Capacitor Version

Latest Dependencies:

  @capacitor/cli: 6.2.0
  @capacitor/core: 6.2.0
  @capacitor/android: 6.2.0
  @capacitor/ios: 6.2.0

Installed Dependencies:

  @capacitor/android: 6.2.0
  @capacitor/cli: 6.2.0
  @capacitor/core: 6.2.0
  @capacitor/ios: 6.2.0

Platform(s)

IOS, not checked on android.

Current Behavior

when on map, if pulling down iphone's menu and turning off internet, then going back to app, map goes blank, xcode logs state no internet connection.
after navigating out of the map screen and coming back in (all while still offline) map shows correctly.

Expected Behavior

map keeps showing even if connection is lost.

Code Reproduction

just create a regular map and following the instructions above.

Additional Context

xcode dump

Task <64CC9902-8C66-4211-9554-543FD16F0925>.<8> finished with error [18,446,744,073,709,550,611] Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={_kCFStreamErrorCodeKey=53, NSUnderlyingError=0x3034ca5b0 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={NSErrorPeerAddressKey=<CFData 0x301f3d740 [0x1f8b67460]>{length = 28, capacity = 28, bytes = 0x1c1e01bb000000002a0014504028080b ... 0000200400000000}, _kCFStreamErrorCodeKey=53, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <64CC9902-8C66-4211-9554-543FD16F0925>.<8>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <64CC9902-8C66-4211-9554-543FD16F0925>.<8>"
), NSLocalizedDescription=The network connection was lost., NSErrorFailingURLStringKey=https://www.google.com/maps/vt/proto?bpb=Cg0KCAgKEK0CGIEDygEAEgYIABi_hD0aVhIFaGUtSUwaAi0tKNICYgIIL2ISCEQSDgoDc2V0EgdSb2FkbWFwYgIIFGIWCCMSEgoJbXVsdGl6b29tEgVmYWxzZWIPCCUSCwoJc21hcnRtYXBzoAEAIAEyJggMEAIwADgBgAIBuAIB2AIB6AIBkAMB4AMB0AQB4AEGyAIBsAMBogEGGAEwAXgBugEezsVT0cVTut2oAumOtBbriLgWj6q4Fr_ExiLX8vYsKgUtAACAPw, NSErrorFailingURLKey=https://www.google.com/maps/vt/proto?bpb=Cg0KCAgKEK0CGIEDygEAEgYIABi_hD0aVhIFaGUtSUwaAi0tKNICYgIIL2ISCEQSDgoDc2V0EgdSb2FkbWFwYgIIFGIWCCMSEgoJbXVsdGl6b29tEgVmYWxzZWIPCCUSCwoJc21hcnRtYXBzoAEAIAEyJggMEAIwADgBgAIBuAIB2AIB6AIBkAMB4AMB0AQB4AEGyAIBsAMBogEGGAEwAXgBugEezsVT0cVTut2oAumOtBbriLgWj6q4Fr_ExiLX8vYsKgUtAACAPw, _kCFStreamErrorDomainKey=1}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions