locked
PeerFinder.FindAllPeersAsync supported between WP8 app and Windows Store app? RRS feed

  • Question

  • Hi,

    Is PeerFinder.FindAllPeersAsync supported between WP8 app and Windows Store app?

    http://msdn.microsoft.com/en-us/library/windowsphone/develop/windows.networking.proximity.peerfinder.findallpeersasync.aspx

    Documentation says FindAllPeersAsync works by using WI-FI Direct. On the other hand it says WI-FI Direct is not supported on Windows Phone 8. Somehow it still seems to work on Windows Phone 8. I think it works over Bluetooth on WP8.

    However in Windows Store app it seems to work only over WI-FI Direct. To me it seems that FindAllPeersAsync doesn't work between Windows Store app and WP8 although AlternateIdentities documentation suggests that browsing is supported between different platforms.


    Friday, November 9, 2012 1:45 PM

Answers

  • Unfortunately, you can't use PeerFinder.FindAllPeersAsync to connect between WP8 and Windows Store apps.  As you point out, the reason is because the underlying technology is different (Windows 8 uses WiFiDirect, whereas WP8 uses Bluetooth).

    Tuesday, November 27, 2012 8:44 PM

All replies

  • Unfortunately, you can't use PeerFinder.FindAllPeersAsync to connect between WP8 and Windows Store apps.  As you point out, the reason is because the underlying technology is different (Windows 8 uses WiFiDirect, whereas WP8 uses Bluetooth).

    Tuesday, November 27, 2012 8:44 PM
  • Microsoft's documentation around this is terrible. The Alternate Identities documentation that you are referring to is most definitely an indicator that it is possible:

    The format of the proximity app Id is <package family name>!<app Id>. You can get the package family name from the Windows.ApplicationModel.Package.Current.Id.FamilyName property. You must copy the app Id value from the Id attribute of the Application element in the package manifest for your app.  For Example, PeerFinder.Add("WindowsPhone", "{1c6379c1-9d5e-4254-8f4c-be7ea24057d1}") adds a Windows Phone 8 app id as an alternate identity in your Windows 8 app. PeerFinder.Add("Windows", "b3c3e7ef-371a-464f-a75e-95ddbdcaf974_7fed2v891h66p!App") adds a Windows 8 app id as an alternate identity in a Windows Phone 8 app.

    However, try turning off WifiDirect on the Windows 8 app and then attempt FindAllPeersAsync. It requires that WifiDirect is turned on, so I assume it will never find a WP8 app...

    This is horrendous, as is much of the documentation around proximity.

    Saturday, February 16, 2013 9:10 PM