Nearby Connections 2.0: Mixing Different Strategies?
I've been experimenting with the new Android Nearby Connections v2.0 API, and have some questions about the Connection Strategies used for advertising and discovery. These question
Solution 1:
Yup, you answered your own questions. You must match strategies on both the advertiser and discoverer side. Otherwise, you will never discover the advertising device.
As for switching strategies in the middle of a flow, it's explicitly disallowed. You'll get an error when you start advertising / start discovery while you still have connections over a previous strategy.
Post a Comment for "Nearby Connections 2.0: Mixing Different Strategies?"