Why cannot I install Microsoft Azure Notification Hub library and (or) Microsoft Azure Service Bus through NuGet into Universal Windows app project? In Windows 8.1/Phone 8.1 apps all works perfectly, not like in Windows 10.
As of July 2016 Notification Hubs SDK is not available for UWP. The product team is aware of it and working on providing it.
At the moment, there are two ways to workaround it:
Use WindowsAzure.Messaging.Managed Nuget package as described in Getting started with Notification Hubs for Windows Universal Platform Apps
Use REST API.
#quillaur, certain Hubs SDKs are open sourced. But, unfortunately, not Windows ones at the moment.
What do you mean that notification
I'm not ready to know you want to do and
I know that you can use ms cloud to push info
[DataContract]
public clas OAuthToken
{
[DataMember(Name="access_token")]
public string AccessToken{set;get;}
[DataMember(Name="token_type)]
public string TokenType{set;get;}
}
And win10 UWP may download the library in GitHub but I can't find it now.
Related
We are looking to access and use Bluetooth profiles in our WPF application using C# in Visual Studio 2017.
Issue details:
Platform: Windows 10 Pro - version 1803.
Issue brief: We are trying to access Bluetooth profiles via desktop(c#) of connected phones, however on windows 10 the profile show enable but the profiles are not working eg: HFP connects, however, the voice is not heard
We have tested this on following Bluetooth devices:
1.Bluetooth CSR 4.0 Dongle (CSR8510 A10) (Note: this Bluetooth connects and show HFP and works as expected, however, the Bluetooth does not show on the device list and hence we cannot connect programmatically using c#)
2.IOGEAR's Bluetooth 4.0 (Model GBU521W6) (Shows on device list and our application can detect a device, however, HFP is not working as expected both from the application or from normal device section)
Required Profiles:
1.Hands-Free Profile (HFP)
2.Message Access Profile (MAP)
3.Phone Book Access Profile (PBAP)
We have Already Tried with following:
Updating drivers
Tried uninstall install many times
Used android, ios, and windows phone's
Side note: Our application with same code works on windows 7
MAP abd PBAP is not a problem because both are OBEX based (which is RFCOMM).
However there can be some problems with HandsFree. It works great with BlueSoile drivers. But with standard microsoft may not work.
The first step it to use BluetoothSetServiceState with HFP UUID to tell windows to install drivers for your device's HFP profile. If function succeed you should see 2 audio devices appeared in your system: one is Inout and other is Output. You can find them using any media API (DirectSound, legacy API).
To be able to work with PBAP and MAP you need anyhow connect to your device through RFCOMM. WinSock or any other way is good.
Please note that the method above works only with Microsoft Bluetooth drivers. Other drivers (BlueSoleil, Toshiba) have absolutely different API so you have to add it into your application if need to support them.
Or you can simple take a look on BluetoothFramework
I need to send this data below to the cloud, I've tried to mix it with a code in IoT Hub called SimulatedDevice, but I Always have some errors.
if (reading.IsValid)
{
this.TotalSuccess++;
this.Temperature = Convert.ToSingle(reading.Temperature);
this.Humidity = Convert.ToSingle(reading.Humidity);
this.LastUpdated = DateTimeOffset.Now;
this.OnPropertyChanged(nameof(SuccessRate));
// this.WriteData();
}
To do that, I've to mix the code above with this code here: IoT-hub C#: get started from azure.microsoft.com.
In my case I've to send temperature an humidity, someone could help? To send this information to the cloud? How could I mix these both.
I'm supposing you're running your app on windows IoT devices(like raspberry pi), so you need to develop UWP app, the reference you provide is for console app, which does not run on windows IoT devices.
There's an nice VS extension called Connected Service for Azure IoT Hub, as below,
After you install it, you can "connect to Azure IoT" Hub in the "Add Connected Service" pop up, all the necessary references will be automatically added, and an AzureIoTHub.cs file is created too.
Note you'll need to add "Windows IoT Extension for the UWP" extension to you project otherwise you'll run into error.
After you are done, you can update the data to your Azure IoT Hub. I have verified it on my raspberry pi 2 with IoT Core 14393.
Alternatively, there's an UWP sample app from azure-iot-sdk github repo, note that you'll need to reference "Windows.Azure.Devices.Client" instead of "Windows.Azure.Devices.Client.WinRT". It also works with my rapberry pi 2.
I'm making a Windows Universal app in which I need to integrate WhatsApp so that I can use all of its features in my app. I tried to use the API for the Windows Forms application but didn't worked out well. So what I want to know is that what are the different ways in which I can use all of the features of the WhatsApp API for WinForms in my UWP app?
P.S.: I have already seen the WhosDown wrapper for Windows 10 but it is a wrapper for WhatsApp Web, not for the WhatsApp application.
I have already seen the WhosDown wrapper for Windows 10 but it is a wrapper for WhatsApp Web, not for the WhatsApp application.
I guess that you used wrong API, you can refer to the Windows Phone FAQ Articles, just for example, you can launch WhatsApp application and send text from your UWP app like this:
string uri = "whatsapp://send?text=Hello%20World!";
await Launcher.LaunchUriAsync(new Uri(uri));
This solution works only when WhatsApp is already installed on your mobile. If system can not find WhatsApp on your mobile, it will open the Store and show the recommended apps which registered this protocol.
And I just tested, when use this on PC, the store can't find the app in store, seems this app only targets the mobile device, on windows pc, you need to install this app in other way.
How beta windows phone 8.1 app. Might sound like a newbie question but bear with me. I have written and app like quite a few others but this is the first app where I want to support wp8.1 and wp10. The app side loaded on to a wp8.1 or wp10 device works fine as expected.
If put into the Windows store as beta with the necessary emails will install on wp10 devices but refuses to install on wp8.1 devices no matter what.
If I put into the store as normal it fails testing with an ungraceful shutdown that I cannot replicate.
I can't install beta to get the crash dumps to find out what's going on. So now am completely stuck.
Any help or advice would be much appreciated.
If you want to publish a beta version to a specific group of people, then you'll need to select the following option :
Hide this app and make it available only to the people you specify
below, who can download this app on Windows Phone 8.x devices. A
promotional code may be used to download this app on Windows 10
devices.
Only the people whose email addresses (associated with their Microsoft accounts) that you enter in the box can download your app by using the direct link to its listing. If you want W10 beta testers, then you'll need in addition to generate promotional code and send each promoted link to your W10 beta testers. Check this link to learn more about beta publishing on Windows Store.
If you failed to install beta version on WP8.1 devices, I can see two reasons:
Email addresses defined in the publisher portal do not match with the one activated on the WP8.1 devices
You tried to install the WP8.1 app immediately after defining the list of Email addresses in the publisher portal. In fact you'll to wait couple of hours before beta version becomes available on devices
Thanks for your answers. But after a long protracted process I finally got through to Microsoft. (If you do't have paid for MSDN support is damn near impossible to talk to anyone) Turns out there was a problem with my dev account. safe to say the issue is now fixed and apps are downloading/installing again
I am developing for android on Xamarin (c#), I followed this guide to setup a notification system with Microsoft azure :
http://azure.microsoft.com/en-us/documentation/articles/partner-xamarin-notification-hubs-android-get-started/#register
The thing is that then I tested on both of my devices only one received the notification, and for some reason on the azure hub server I see only one registered device, I thought maybe be there is a problem with my other phone and even tried to install the application on my friend phone and it didn't work either .
I will not post any code here because its exactly like in the guide I posted just with my information (google id, and hub name and so on..)
The first phone (on this one the notification works) is running version 4.2.2, and having a root premonitions if it make any difference.
The second phone (not working) is running version 4.4.2.
Any ideas or suggestions ? Thank's in advance.