My "Best TI SensorTag BLE" code works with the TI SensorTag; that includes some buttons which look similar to the Keyfob. Source code for that program is available.
Some hints: I didn't use the authoring stuff at all; instead, you have to make sure that the application manifest includes the right set of capabilities. This has to be entered by hand. The Best TI SensorTag BLE program has the following as the
manifest:
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest">
<Identity Name="48425ShipwreckSoftware.BestTISensorTagBLE" Publisher="CN=9A3276B6-661B-463D-9598-EFFF0974120A" Version="1.5.0.3" />
<Properties>
<DisplayName>Best TI SensorTag BLE</DisplayName>
<PublisherDisplayName>Shipwreck Software</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>
<Prerequisites>
<OSMinVersion>6.3.0</OSMinVersion>
<OSMaxVersionTested>6.3.0</OSMaxVersionTested>
</Prerequisites>
<Resources>
<Resource Language="x-generate" />
</Resources>
<Applications>
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="TISensorTag.App">
<m2:VisualElements DisplayName="Best TI SensorTag BLE" Square150x150Logo="Assets\Logo.png" Square30x30Logo="Assets\SmallLogo.png" Description="TISensorTag" ForegroundText="light" BackgroundColor="#464646">
<m2:SplashScreen Image="Assets\SplashScreen.png" />
</m2:VisualElements>
</Application>
</Applications>
<Capabilities>
<!-- Important: These capabilities are required to work with GATT type Bluetooth devices.
The values are not enterable from the UI; you have to type them in by hand.
-->
<m2:DeviceCapability Name="bluetooth.genericAttributeProfile">
<m2:Device Id="any">
<m2:Function Type="name:genericAttribute" />
<m2:Function Type="serviceId:F000AA00-0451-4000-B000-000000000000" />
<!-- Thermometer -->
<m2:Function Type="serviceId:F000AA10-0451-4000-B000-000000000000" />
<!-- Accelerometer -->
<m2:Function Type="serviceId:F000AA20-0451-4000-B000-000000000000" />
<!-- Humidity -->
<m2:Function Type="serviceId:F000AA30-0451-4000-B000-000000000000" />
<!-- Magnetometer -->
<m2:Function Type="serviceId:F000AA40-0451-4000-B000-000000000000" />
<!-- Barometer -->
<m2:Function Type="serviceId:F000AA50-0451-4000-B000-000000000000" />
<!-- Gyroscope -->
<m2:Function Type="serviceId:0000FFE0-0000-1000-8000-00805f9b34fb" />
<!-- Buttons -->
</m2:Device>
</m2:DeviceCapability>
</Capabilities>
</Package>