Skip to content

Add retry logic for Wi-Fi LAN advertising to avoid issues on iOS 14.8.1 #2061

@edgarclerigo

Description

@edgarclerigo

I'm currently using the latest version of the Nearby SPM.

The exact same code runs ok, and I'm able to startAdvertising on iOS 16.6 but on iOS 14.8.1 it fails to start.

These are the logs that I have

[lvl=2] service_controller_router.cc:85() ServiceControllerRouter going up.
[lvl=2] client_proxy.cc:60() ClientProxy ctor event_logger=0x0
[lvl=2] analytics_recorder.cc:101() Start AnalyticsRecorder ctor event_logger_=0x0
[lvl=2] endpoint_manager.cc:377() EndpointManager received request to add registration of frame processor 0x12c0256b0 for frame type PAYLOAD_TRANSFER, self=0x12c025638
[lvl=2] endpoint_manager.cc:377() EndpointManager received request to add registration of frame processor 0x12c0257b8 for frame type BANDWIDTH_UPGRADE_NEGOTIATION, self=0x12c025638
[lvl=2] offline_service_controller.cc:41() Client -2222247868050356217 requested advertising to start.
[lvl=2] base_pcp_handler.cc:179() StartAdvertising with supported mediums: { WIFI_LAN }
[lvl=2] p2p_cluster_pcp_handler.cc:2055() P2pClusterPcpHandler::StartWifiLanAdvertising: service=myserviceid: start
[lvl=2] base_pcp_handler.cc:432() Waiting for future to complete: StartAdvertising(myserviceid)
[lvl=2] wifi_lan.cc:242() Failed to start accepting WifiLan connections for service_id=myserviceid
[lvl=2] p2p_cluster_pcp_handler.cc:2064() In StartWifiLanAdvertising(6970686f6e652038), client=-2222247868050356217 failed to start listening for incoming WifiLan connections to service_id=myserviceid
[lvl=3] p2p_cluster_pcp_handler.cc:174() Failed StartAdvertising(6970686f6e652038) for client=-2222247868050356217
[lvl=2] client_proxy.cc:932() ClientProxy [ExitHighVisibilityMode]: client=-2222247868050356217
[lvl=2] base_pcp_handler.cc:439() Future:[StartAdvertising(myserviceid)] completed with status:12

Metadata

Metadata

Assignees

Labels

P1Priority 1 issue (will likely block a customer in the future)lang: swiftAn issue with a Swift client libraryplatform: appleAn issue with the macOS or iOS implementationproject: connectionsAn issue with the Connections projecttype: bugSomething is broken or not working as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions