Push Notifications in Windows Phone 7

Posted on 2011-10-13
Last Modified: 2014-11-12

I'm developping a webservice in WCF.
Windows Phone devices will get data from the webservice but i would like to know if push notification will work or i need to subscribe to a windows cloud service (azure)

So my question is : is it possible to send push notification without microsoft cloud services? and if yes, how the device can subscribe?

i read article to send notification to the device :


but to send the notification, they have written this line :

// The URI that the Push Notification Service returns to the Push Client when creating a notification channel.
string subscriptionUri = "<Notification Channel URI>";

how can i get the "notification channel uri"?

Thank you for helping,

Kind Regards.
Question by:Dnx_7
    LVL 6

    Assisted Solution

    The URI is the Azure channel service URI.
    The following code gets a URI of an Azure service based on the service channel name:

    private void GetPushNotificationURI()
        string channelName = "AzureStockTestChannel";
        HttpNotificationChannel channel; 
        channel = HttpNotificationChannel.Find(channelName);
        if (channel != null)
            pushNotificationUri = channel.ChannelUri.ToString();
            channel = new HttpNotificationChannel(channelName);
            channel.ChannelUriUpdated += new EventHandler<NotificationChannelUriEventArgs>(channel_ChannelUriUpdated);
    void channel_ChannelUriUpdated(object sender, NotificationChannelUriEventArgs e)
        pushNotificationUri = e.ChannelUri.ToString();

    Open in new window

    (answer based on Dan Waters's blog on MSDN -
    LVL 48

    Assisted Solution

    LVL 2

    Author Comment

    Thank you but do i need to subscribe to an Azure Service?

    both answer use Azure service but i don't have any azure service...

    i just want to write my own webservice in wcf and send notification to the mobile device via WCF or whatever else with no cost of cloud service...
    LVL 48

    Expert Comment

    Are you using Mango (7.1)?
    LVL 48

    Accepted Solution


    Featured Post

    Want to promote your upcoming event?

    Are you going to an event? Are you going to be exhibiting at a tradeshow? Talking at a conference? Using a promotional banner in your email signature ensures that your organization’s most important contacts stay in the know and can potentially spread the word about the event.

    Join & Write a Comment

    Once again I push the limits of my phone.  An introduction to the Android Google Now Launcher.
    Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now