Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6100611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:24:24+00:00 2026-05-23T13:24:24+00:00

i have to implement push notification in my project. It has sender(windows phone window

  • 0

i have to implement push notification in my project.
It has sender(windows phone window application),wcf service and client(windows phone applcation).

How can i replace the sender and use my url to send and recieve notification from client?

i want sender to be some application in emulator itself that run parallely with the client and push data continously to the client.

how to develop such application

can anyone tell the way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:24:25+00:00Added an answer on May 23, 2026 at 1:24 pm

    It sounds as though you are looking to use two WP7 apps to send messages back and forth to one another using the push notification functionality. Is that correct?

    My understanding it that you will still require a each device to subscribe to a push notification service (MS hosted) using the unique URI sent back when the subscription is successful. It appears that SL3/4 can create HttpWebRequest objects and therefore should be able to formulate a correct package to send, however, the difficulty as I see it will be how to obtain the URI of the device you want to send the post to. Normally the post is sent to the subscriber, which knows its on URI as it was returned during the subscribing phase.

    My WCF hosted code only works if the WCF knows the URI of the device, which is sent when the WCF method is called:

        public bool sendTileUpdate(string tileText, string url, string image)
        {
            string TilePushXML = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
                    "<wp:Notification xmlns:wp=\"WPNotification\">" +
                    "<wp:Tile>" +
                    "<wp:BackgroundImage>{2}</wp:BackgroundImage>" +
                    "<wp:Count>{0}</wp:Count>" +
                    "<wp:Title>{1}</wp:Title>" +
                    "</wp:Tile>" +
                    "</wp:Notification>";
    
            try
            {
                HttpWebRequest sendNotificationRequest = (HttpWebRequest)WebRequest.Create(url);
                sendNotificationRequest.Method = "POST";
                sendNotificationRequest.Headers = new WebHeaderCollection();
                sendNotificationRequest.ContentType = "text/xml";
    
                // Tile
                sendNotificationRequest.Headers.Add("X-WindowsPhone-Target", "token");
                sendNotificationRequest.Headers.Add("X-NotificationClass", "1");
    
                string str = string.Format(TilePushXML, "", tileText, image);
    
                byte[] strBytes = new UTF8Encoding().GetBytes(str);
                sendNotificationRequest.ContentLength = strBytes.Length;
                using (Stream requestStream = sendNotificationRequest.GetRequestStream())
                {
                    requestStream.Write(strBytes, 0, strBytes.Length);
                }
                HttpWebResponse response = (HttpWebResponse)sendNotificationRequest.GetResponse();
                string notificationStatus = response.Headers["X-NotificationStatus"];
                string deviceConnectionStatus = response.Headers["X-DeviceConnectionStatus"];
                return true;
            }
            catch (Exception e)
            {
                return false;
            }
        }
    

    I know this is a TileNotification, but the principles are the same.

    I understand that Mango (WP7.1 & SL4) will support sockets and this might be a more appropriate way for your devices to communicate!

    Good luck,

    Jason.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In one of my project, I have to implement Apple Push Notification service. For
i am new in iphone development,i want to implement push Notification in my application.
I've been trying to implement the C2DMReceiver to receive push notification. I have downloaded
I'd like to implement a push notification service in my iPad app. But before
I have implemented a sample push notification service for my App. Right now I
I have to implement the VinPower application. They offer a Java version, a C
I have to implement MPI system in a cluster. If anyone here has any
I have to implement a middleware system for file sharing, and it has to
Working on a project at the moment and we have to implement soft deletion
For a project I have a specification with formulas, I have to implement. In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.