Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to discover and advertise in iOS #1591

Closed
fazil6669 opened this issue Apr 25, 2023 · 3 comments
Closed

Unable to discover and advertise in iOS #1591

fazil6669 opened this issue Apr 25, 2023 · 3 comments
Assignees
Labels
needs-triage Issue still needs to be assigned, labeled and deduplicated type: bug Something is broken or not working as intended

Comments

@fazil6669
Copy link

Project

Nearby Connections

Language

Swift

OS Platform

Apple

What happened?

While I try to advertise its throwing error with error message Error Domain=kNWErrorDomainDNS Code=-65555 "DNS Error: NoAuth" UserInfo={NSDescription=DNS Error: NoAuth}

when I try to discover its throwing a error message as Failed StartDiscovery() for client=2228946243778077910 because we couldn't scan on Bluetooth, BLE, or WifiLan for serviceId

What did you expect to happen?

Advertise and Discover should work as expected

How can we reproduce it (as minimally and precisely as possible)?

  1. Start discoverer
  2. Start advertiser

How often does this bug happen?

Every time

Standalone code to reproduce the issue

  1. Start discoverer
  2. Start advertiser

Relevant log output

iOS Example[15260:8251441] [browser] nw_browser_fail_on_dns_error_locked [B1] DNSServiceBrowse failed: NoAuth(-65555)

StartDiscovery() Error starting discovery for service type<_307BEAB11028._tcp.>: Error Domain=kNWErrorDomainDNS Code=-65555 "DNS Error: NoAuth" UserInfo={NSDescription=DNS Error: NoAuth}

Example[15260/0x16f39b000] [lvl=3] p2p_cluster_pcp_handler.cc:1010() Failed StartDiscovery() for client=2228946243778077910 because we couldn't scan on Bluetooth, BLE, or WifiLan for service_id=com.google.location.nearby.apps.helloconnections

Anything else we need to know?

No response

@fazil6669 fazil6669 added needs-triage Issue still needs to be assigned, labeled and deduplicated type: bug Something is broken or not working as intended labels Apr 25, 2023
@fazil6669 fazil6669 changed the title Unable to discover and advertise Unable to discover and advertise in iOS Apr 25, 2023
@bourdakos1 bourdakos1 self-assigned this Apr 25, 2023
@bourdakos1
Copy link
Collaborator

Can you try adding a Bonjour Services list to your Info.plist with Item 0 as _307BEAB11028._tcp.?

@bourdakos1
Copy link
Collaborator

I've updated our sample app to include the usage descriptions and Bonjour services keys: #1592

I've also updated our documentation with more info: https://developers.google.com/nearby/connections/swift/get-started

Feel free to re-open this issue if this doesn't resolve the errors you are seeing :)

@fazil6669
Copy link
Author

Thank you for fixing the issue so quickly! Your efficient work is greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Issue still needs to be assigned, labeled and deduplicated type: bug Something is broken or not working as intended
Projects
None yet
Development

No branches or pull requests

2 participants