A small tale of bringing push notifications to Windows Azure

Some time ago I got more and more problems on my shared hosting because it couldn’t handle the amount of push notifications I wanted to send. I heard my hosting provider tell me that I was quite often taking more than 90% of the CPU on the server. So I thought to give Windows Azure a try.

I wanted to make optimal use of Windows Azure so I designed my solution to make use of Windows Azure Table Storage to store registered devices and pushchannels. When making use of Azure Table Storage it’s important to choose your RowKey and PartitionKey carefully.

To start with the PartitionKey, I chose to put the ApplicationName in there. I want to send push notifications to different applications I created, like Fokke & Sukke and iBood. So far I haven’t found a reason I made a wrong decision.

And now the RowKey, something that I need to use more carefully. The combination of PartitionKey and RowKey needs to be unique. So I wanted to put the DeviceId of the Device that should receive the PushNotification in there, that combined with the platform identifier. As far as I know there’s nothing that guarantees that the DeviceId is unqiue over different platforms. So I prefix the DeviceId with “WP|” for Windows Phone and “RT|” for Windows 8. The rest was just the copy of the DeviceId. I tested this using the emulator, and everything seems to work fine.

Windows Phone app trouble

After a while I notices reviews telling me that Push Notification don’t work, even further, it didn’t work on my own Windows Phone. After searching for many different reasons for this trouble, I found the source, more or less.

When saving an entity to the Azure Table Storage, every now and then a StorageException occurred. There aren’t many details in the exception, so after attaching Fiddler to my Nokia Lumia 920, I saw interesting stuff happening on the line.

The DeviceId contained special characters. I didn’t notice this when using the emulator, because the DeviceId on the emulator didn’t contain any special characters. So in total I had a percentage of users that could never register because of the StorageException, I still have no idea how large that percentage is, DeviceIds at least regularly contain the ‘/’ character.

Lesson learned, make sure the RowKey and PartitionKey don’t contain special characters: /, \, #, ?

Windows Style app trouble

Besides the Windows Phone issues, I had a very strange behavior on Windows 8 as well. It happened that I was sending a push notification to my local (installed through Visual Studio) app that did not appear. For example I sent a BadgeNotification with value 1 and sometimes the value 17 appeared. I have been trying to find the reason behind it, I never found it. Because when I tried to debug it explicitly with a value like 4 it did show 4. I never got feedback about issues with the push notifications on Windows 8 since my move to Windows Azure, but my dev-machine had troubles.

So after a couple of weeks trying to find causes for the problem I did something that was my final call. I did uninstall the app, and installed the app from the Store. What happened? The pushnotifications started behaving correctly. I have no understanding about the differences between the apps, but it’s good to be aware that there seem to be differences between the app installed from the store and the app installed by Visual Studio.

  • Gravatar Russell Archer April 15th, 2013 at 11:26
    Great article, and a very timely one for me as I'm just about to develop a WP8 app based around Azure services. Many thanks for sharing your experiences.
  • Gravatar Danny May 1st, 2013 at 08:19
    Great Article on Azure service. I am using this for some new apps. This helped me with a mental problem I could't resolve.
  • Gravatar french flair lancel May 8th, 2014 at 08:32
    C'est malheureux, j'en suis consciente mais s'habiller exclusivement local coute cher, très cher.
  • Gravatar dental school near me May 20th, 2014 at 18:52
    I love your blog.. very nice colors & theme. Did you make
    this website yourself or did you hire someone to do it for you?

    Plz respond as I'm looking to construct my own blog and would like to know where u
    got this from. cheers
  • Gravatar mbt shoes May 21st, 2014 at 14:54
    Martin Luther King Stands on the Lorraine Motel Balcony
  • Gravatar Ip Men steel May 28th, 2014 at 03:26
    Thank you so much for giving everyone remarkably terrific chance to read in detail from this site. It is always so enjoyable and also stuffed with a good time for me and my office mates to search your web site on the least thrice weekly to see the latest issues you have got. Of course, I am just always amazed considering the sensational hints you serve. Selected two tips on this page are in truth the most effective we have all ever had.
  • Gravatar cosplay costumes store May 28th, 2014 at 03:26
    Definitely believe that which you stated. Your favorite justification appeared to be on the internet the simplest thing to be aware of. I say to you, I definitely get irked while people consider worries that they just don't know about. You managed to hit the nail upon the top and also defined out the whole thing without having side effect , people can take a signal. Will likely be back to get more. Thanks
  • Gravatar Christian Louboutin 100mm Simple May 31st, 2014 at 09:04
    It's very effortless to find out any matter
    on net as compared to books, as I found this post at this site.
  • Gravatar polo ralph lauren homme solde June 4th, 2014 at 09:10
    soit lynché par toute une <a href=' http://www.mintia.fr/polo-ralph-lauren-pas-cher-homme-polo-ralph-lauren-homme-pas-cher-polo-ralph-lauren-homme-solde.html'>polo ralph lauren homme pas cher</a> et le collège laisse s
  • Gravatar vetement trail salomon June 17th, 2014 at 03:08
    Eh bien, j'esp猫re que ces id茅es vous ont aid茅 脿 faire un petit trou dans votre liste de No毛l. Si vous 锚tes int茅ress茅 par l'un des magasins, assurez-vous de t茅l茅phoner 脿 l'avance avant de planifier votre journ茅e. Avec la saison de No毛l turbulent sur nous, certains de ces magasins peuvent avoir des heures d'ouverture sp茅ciales qui sont diff茅rentes de celles indiqu茅es. Achats heureux!
  • Gravatar polo lacoste discount June 18th, 2014 at 12:01
    Malgré la pression du directeur général de l'OMC, <a href=' http://www.collegium-rosae-crucis.fr/polo-homme-lacoste-pas-cher-polo-homme-lacoste-lacoste-pas-cher-chaussure-lacoste-homme-pas-cher-lacoste-homme-chaussure-lacoste-homme.html'>polo homme lacoste pas cher</a> obtenir en échange de la baisse de leurs subventions.
  • Gravatar sac lacoste pas cher June 23rd, 2014 at 03:33
    Pascal Lamy, qui exigeait un accord au plus tard à la <a href=' http://www.collegium-rosae-crucis.fr/polo-homme-lacoste-pas-cher-polo-homme-lacoste-lacoste-pas-cher-chaussure-lacoste-homme-pas-cher-lacoste-homme-chaussure-lacoste-homme.html'>polo homme lacoste</a> Or, ?aujourd'hui, nous ne pouvons pas rentrer à la maison
  • Gravatar casquette lacoste June 25th, 2014 at 12:29
    Selon lui, un accord sur le volet agricole ? <a href=' http://www.frederiquesaillard.fr/sacoche-lacoste-pas-cher-lacoste-pas-cher-sac-lacoste-short-lacoste-homme-short-lacoste-lacoste-homme-pas-cher.html'>sacoche lacoste pas cher</a> chirurgical de leur capitaine David Beckham
  • Gravatar www.thisweekinearth.net June 26th, 2014 at 09:08
    Passion Of High Heels, High heels have quite a different and interesting history,They were actually created as a rider's shoes as normal flat shoes would always all out of the stirrups and a high heeled shoes would help to catch into the stirrups and ensure that the riders would not always fall off of the horse, but have some sort of leverage when trying to stay on,Even today these rider shoes are manufactured in a same way with the high heels and these are also the same as all cowboy boots that also have this look for the exact same reason as cowboys also spend a great part of their time on horses and required specialized shoes to make sure that they stay in place and have a good enough grip,Women started to wear high heels in around the time of 1533, when the Duke of Orleans's wife who was extremely short asked a specialized cobbler to create some high heel shoes for her, so that she could look little bit taller in the company of others,After that the trend of high heels spread as an epidemic among every woman,Shoes of every type and style were available in the shops,They would get come in many bright colors like pink, red, green and many other colors,Even they were decorated with large bows made of ribbons and roses which were very huge,Heels of that time were not as comfortable as they are now, also they have more good looks classy touch in them,With the passage of time men stopped wearing heels and it was only women who continue to wear them in many shapes and sizes as a fashion statement and to add to their overall sex appeal,Over the years there were many types of high heels that come in and out of fashion,For example from platforms to stilettos to high heels all are women best friends, women love to wear them and flaunt their sexy legs as they make her look taller, slimmer, voluptuous, and in perfect shape,Heels come in many forms, like low length, medium length and high length,You can wear any of them depending on your comfort level or the type of outfit that you are wearing,The only reason why women wear them is "look",You can look stylish, attractive, fashionable and trendy,These days' heels have become taller, sleek and thinner,Some women do not enjoy wearing high heels as they feel uncomfortable in them whereas others who have been wearing them from years can't do without them as they have now become an integral part of their life,It is not at all difficult to walk in them all you need to do is practice hard and you can also become an expert,high heels are in fashion since 1533 high heels High heels have quite a different and interesting history,They were actually created as a rider's shoes as normal flat shoes would always all out of the stirrups and a high heeled shoes would help to catch into the stirrups and ensure that the riders would not always fall off of the horse, but have some sort of leverage when trying to stay on,Even today these rider shoes are manufactured in a same way with the high heels and these are also the same as all cowboy boots that also have this look for the exact same reason as cowboys also spend a great part of their time on horses and required specialized shoes to make sure that they stay in place and have a good enough grip,Women started to wear high heels in around the time of 1533, when the Duke of Orleans's wife who was extremely short asked a specialized cobbler to create some high heel shoes for her, so that she could look little bit taller in the company of others,After that the trend of high heels spread as an epidemic among every woman,Shoes of every type and style were available in the shops,They would get come in many bright colors like pink, red, green and many other colors,Even they were decorated with large bows made of ribbons and roses which were very huge,Heels of that time were not as comfortable as they are now, also they have more good looks classy touch in them,With the passage of time men stopped wearing heels and it was only women who continue to wear them in many shapes and sizes as a fashion statement and to add to their overall sex appeal,Over the years there were many types of high heels that come in and out of fashion,For example from platforms to stilettos to high heels all are women best friends, women love to wear them and flaunt their sexy legs as they make her look taller, slimmer, voluptuous, and in perfect shape,Heels come in many forms, like low length, medium length and high length,You can wear any of them depending on your comfort level or the type of outfit that you are wearing,The only reason why women wear them is "look",You can look stylish, attractive, fashionable and trendy,These days' heels have become taller, sleek and thinner,Some women do not enjoy wearing high heels as they feel uncomfortable in them whereas others who have been wearing them from years can't do without them as they have now become an integral part of their life,It is not at all difficult to walk in them all you need to do is practice hard and you can also become an expert,high heels are in fashion since 1533 high heels
  • Gravatar polo ralph lauren manches court July 12th, 2014 at 12:02
    gabegie. Mais le retour à la stabilité <a href=' http://www.masterburger.fr/polo-ralph-lauren-Big-Pony-polo-ralph-lauren-Big-Pony-pas-cher-polo-ralph-lauren-Big-Pony-soldes.html'>polo ralph lauren Big Pony</a> d'al-Qaida en Irak, le chef terroriste
  • Gravatar gucci belt white July 19th, 2014 at 03:35
    ESPN Zone 茅tait un espace assez impressionnant; 脿 quatre 茅tages de salle et des sports 脿 regarder, lorsque le lieu a 茅t茅 lib茅r茅 il ya plus d'un an, il a laiss茅 un tr猫s grand vide.
  • Gravatar sac a main Gucci pas cher July 22nd, 2014 at 10:06
    Un de perdu, dix de retrouv茅 < a href=' http://sac-a-main-celine-moin-cher.moonfruit.fr/'>sac a main Burberry moin cher</ a> Il viendra un temps o霉 les renards auront besoin de leur queue.
  • Gravatar fat loss secrets 40\u002b August 15th, 2014 at 14:17
    Sweet blog! I found it while browsing on Yahoo News. Do you
    have any tips on how to get listed in Yahoo News? I've been trying for
    a while but I never seem to get there! Thank you
  • Gravatar DennisNep September 23rd, 2014 at 21:18
    http://www.camotie.com/images/rimowa-travel-196.html 0wm44b http://www.dlvy123.com/news/citizen-watch-261.html アウトレット セリーヌ 財布 http://www.limousinegroup.org/Solihull/hamilton-outlets-153.html l6kj http://www.theloulander.com/tity/celine-outlet-148.html ilk http://www.smittysweb.be/bin/citizen-watch-266.html バックぶらんど http://www.emckenney.com/news/citizen-watch-56.html 2014 セリーヌ http://www.papendiecksupholstery.com/misc/hamilton-watchs-68.html セリーヌ Celine http://www.formalforensics.org/forforensics/hamilton-outlets-172.html h9s http://www.mikesori.com/db/citizen-watch-140.html rxf http://www.papendiecksupholstery.com/misc/hamilton-watchs-164.html シチズン ソーラー電波時計 http://www.asian-belgian-resort.com/mobile/hamilton-watchs-59.html 2014 セリーヌ http://www.williamsglassandmirror.com/log/celine-outlet-141.html 傘 セリーヌ http://www.sandradawnphotography.com/images/citizen-watch-361.html
  • Gravatar amazon.com October 23rd, 2014 at 09:44
    involves pricking the design outlines on paper with a needle to make holes along the lines, and
    then forcing powdered chalk or pounce material through
    the holes to make the outline on the fabric.
    Decide on your software based on your current skills and also on what
    you plan to offer in the near future in terms of embroidery digitizing service.
    Sherwani is usually worn over a kurta and the lower part of the dress consists either of a churidar pyjama, khara pajama,
    shalwar or even jeans.
  • Gravatar milano lightly insulated gianfranco November 9th, 2014 at 07:57
    What's up colleagues, how is all, and what you would like to say on the topic of this piece of writing,
    in my view its actually awesome in support of me.
  • Gravatar botas ugg venta online chile December 12th, 2014 at 04:25
    Hay un verdadero una enorme tentación cuando estás
    establecer un negocio en línea formas de : es dentro de los los
    años reales años, mucho antes de ventas del producto.
    con respecto a la fuerza motriz que es hoy. La tentación sería arar su totalidad presupuesto de
    promoción en buscadores o pancartas publicitarias .

    Si éste es tu caso, que pudo acaba ideales a
    que es mejor pensar de nuevo. .botas ugg venta online chile
  • Gravatar danhbai52la.com July 7th, 2015 at 06:03
    If some one wishes to be updated with most recent technologies after that he must be visit this web page and be up to date every day.
  • Gravatar litigation service July 9th, 2015 at 20:45
    Hi Dear, are you actually visiting this site regularly, if so afterward you will definitely take fastidious know-how.
  • Gravatar jeux vidéo magazine August 3rd, 2015 at 11:30
    Nous somme là fill vous produire un logiciel qui est capable sobre générer kklk
    gemmes gratuitement et illimité.
  • Gravatar credit card protectors August 7th, 2015 at 13:17
    Fine way of explaining, and pleasant piece of writing to take
    data concerning my presentation topic, which i am going to present
    in academy.
  • Gravatar seo September 15th, 2015 at 08:08
    Hell very nice web site!! Man .. Beautiful .. Superb ..
    I will bookmark your web site and take the feeds also?
    I am happy to seek out so many helpful info here in the post,
    we want develop extra strategies in this regard, thank you for sharing.
    . . . . .
  • Gravatar Livre Negocio November 1st, 2015 at 03:36
    Origem: Wikipédia, a enciclopédia livre.

    Livre Negocio Criado dia 17 dde abbril de 2015 por José marcos
    ribeiro, técnico em telecomunicações e estudante de hipnose

    José marcos Ribeiro teve a ideia de criar o site www.livrenegocio.com.br apos perceber
    que seu paos estava passando por momentos difíceis, com uma grave
    crise financeira

    jose marcos ribeiro percebeu que apesar de haver milhares de sites
    de compras coletivas pessoas comuns não poriam iniciar
    suas vendas na internet,
    o greande problema qque a maioria dos logistas encontravam erá a demora no repasse do
    dinheiro

    José marcos ribeiro criou o Livrenegocio ouu Livre Negocio, a empresa repassa
    o dinheiro para o vendedor imediatamente apos o
    comprador receberr o produto que comprou assim o vendedor
    pode repor o seu estoque e continuar vendendo.

    A ideia do livre Negocio é promover a compra e vrnda
    interna em nosso pais pois todos quere vender aquele celular usado ouu augo novo
    Porem presisamm do dinheiro em tempo abil para pagar suas contas ouu usar o seu dinheiro para outras
    compras
  • We've got the NEWEST ways to get unlimited gold in Mobile Strike oh
    yeah gelatto that functons aas of Might 2014.
  • Gravatar WallacePMeer August 12th, 2016 at 19:03
    Hi there friends, fastidious paragraph and fastidious arguments commented at this place, I am in fact enjoying by these.
  • Gravatar mink eyelash extensions near me March 18th, 2017 at 02:34
    I used to be recommended this website via my cousin. I'm no longer sure whether or not this submit
    is written via him as nobody else know such specified approximately my problem.
    You're incredible! Thank you!
  • Gravatar pron best May 15th, 2017 at 09:23
    j8LZpT You should participate in a contest for the most effective blogs on the web. I will suggest this site!
  • Gravatar http://www.buygolfaustralian.com/ July 12th, 2017 at 07:18
    Every Sunday night, GOLF.com conducts an e-mail roundtable with writers from Sports Illustrated and GOLF Magazine. Check in every weekThe Emery County Sheriff's Office, Emery County Search and Rescue along with the Emery County Progress teamed up to host a fundraiser New golf personalities are taking the place of Woods, and the sport is looking to attract younger players with Topgolf entertainment venues Participants golfed with a cause at the Fountain Springs Golf Course. The mission was to help veterans and soldiers who face physical
  • Gravatar http://www.physicalgolf.co.uk July 12th, 2017 at 07:18
    Other sponsors include Dr. Steve Childress; Mr. and Mrs. Hans Carstensen; Mr. Hank Dimlich; Glade Springs Resort; The Greenbrier Sporting Club; Hermitage Golf Course; and Lewis Automotive.
  • Gravatar http://www.scigolf.co.uk July 13th, 2017 at 02:33
    Every Sunday night, GOLF.com conducts an e-mail roundtable with writers from Sports Illustrated and GOLF Magazine. Check in every weekThe Emery County Sheriff's Office, Emery County Search and Rescue along with the Emery County Progress teamed up to host a fundraiser New golf personalities are taking the place of Woods, and the sport is looking to attract younger players with Topgolf entertainment venues Participants golfed with a cause at the Fountain Springs Golf Course. The mission was to help veterans and soldiers who face physical
  • Gravatar http://www.golfprice.co.uk/ July 13th, 2017 at 07:04
    Jaden Solheim and Gabe Norberg, 48; 5. Caleb Lounfbrough and Mitchel Olsen, 49; 7. Hayden Ries, 54; 8. Larz Tvedt, 56; Treyton Himneirich, 60; 10. Jack Elshere, 63; 11. Aiden Heathcote, 65; 12. Carson Klatt, 68; 13. Carter Christenson, Joseph Meester and Gabe Ashley, 69; 16. Ty Sullivan, 71; 17. Dayne Martin, 74; 18. Conner Dahl, 77; 19. Jarin Eidson and Kaeden Himneirich, 82; 21. Evan Schussler, 87; 22. Brecken Jungen, 99.
  • Gravatar http://www.lowpricegolfaus.com/ July 26th, 2017 at 05:43
    The Beatles weren’t exactly known for their lively interest in golf, but there is photographic evidence of what I guess we’ll call their “game,” taken, of all places, in Indianapolis, Ind., in early September 1964. That’s when the band flew into Indy for their first and only Indiana shows, which took place at the Indiana State Fairgrounds on Sept. 3, first at 6 p.m. and then again in a hastily arranged 9:30 show designed to accommodate the crush of fans.Legends from that night abound. The Beatles are said to have crashed in the same room, which seems gross. And on a 1982 radio show, Ringo Starr admitted to convincing local police to let him drive a cop car around town, an adventure that culminated with Starr being chased by another cop car. “We had to pull into this alley, turn the lights off and hide in this police car — me and two big cops,” he said at the time. “And this other cop car goes past us. It was fun … in a police car hiding from the police.” (The cops’ version was that they gave Ringo a ride, took him to breakfast and got him home by sunrise. His version is better.)
  • Gravatar http://www.getgolfaustralia.com/ July 26th, 2017 at 05:43
    For those unfamiliar with the details of Simpson’s past, the dropped glove is in reference to a bloody glove found at the scene of the murders of Simpson’s ex-wife Nicole Brown Simpson and Ron Goldman in 1994. Simpson was acquitted of murder charges, but in a later civil suit filed by Goldman’s family, a jury unanimously found Simpson liable for the wrongful death of and battery against Goldman, and battery against Brown.It appeared in Josh Peter’s story in USA Today on Tuesday regarding Simpson’s plans in the event he is granted parole following a parole hearing on Thursday. Simpson is serving a minimum nine-year jail sentence with a maximum of 33 years for an armed robbery conviction in 2008.
  • Gravatar http://www.pricegolfau.com July 26th, 2017 at 05:43
    For those unfamiliar with the details of Simpson’s past, the dropped glove is in reference to a bloody glove found at the scene of the murders of Simpson’s ex-wife Nicole Brown Simpson and Ron Goldman in 1994. Simpson was acquitted of murder charges, but in a later civil suit filed by Goldman’s family, a jury unanimously found Simpson liable for the wrongful death of and battery against Goldman, and battery against Brown.It appeared in Josh Peter’s story in USA Today on Tuesday regarding Simpson’s plans in the event he is granted parole following a parole hearing on Thursday. Simpson is serving a minimum nine-year jail sentence with a maximum of 33 years for an armed robbery conviction in 2008.
  • Gravatar http://www.drgolf.co.uk July 26th, 2017 at 14:11
    For those unfamiliar with the details of Simpson’s past, the dropped glove is in reference to a bloody glove found at the scene of the murders of Simpson’s ex-wife Nicole Brown Simpson and Ron Goldman in 1994. Simpson was acquitted of murder charges, but in a later civil suit filed by Goldman’s family, a jury unanimously found Simpson liable for the wrongful death of and battery against Goldman, and battery against Brown.It appeared in Josh Peter’s story in USA Today on Tuesday regarding Simpson’s plans in the event he is granted parole following a parole hearing on Thursday. Simpson is serving a minimum nine-year jail sentence with a maximum of 33 years for an armed robbery conviction in 2008.
  • Gravatar http://www.clearancegolfau.com/ July 26th, 2017 at 14:11
    For those unfamiliar with the details of Simpson’s past, the dropped glove is in reference to a bloody glove found at the scene of the murders of Simpson’s ex-wife Nicole Brown Simpson and Ron Goldman in 1994. Simpson was acquitted of murder charges, but in a later civil suit filed by Goldman’s family, a jury unanimously found Simpson liable for the wrongful death of and battery against Goldman, and battery against Brown.It appeared in Josh Peter’s story in USA Today on Tuesday regarding Simpson’s plans in the event he is granted parole following a parole hearing on Thursday. Simpson is serving a minimum nine-year jail sentence with a maximum of 33 years for an armed robbery conviction in 2008.
  • Gravatar http://www.forsalegolfuk.co.uk/ July 26th, 2017 at 19:45
    For those unfamiliar with the details of Simpson’s past, the dropped glove is in reference to a bloody glove found at the scene of the murders of Simpson’s ex-wife Nicole Brown Simpson and Ron Goldman in 1994. Simpson was acquitted of murder charges, but in a later civil suit filed by Goldman’s family, a jury unanimously found Simpson liable for the wrongful death of and battery against Goldman, and battery against Brown.It appeared in Josh Peter’s story in USA Today on Tuesday regarding Simpson’s plans in the event he is granted parole following a parole hearing on Thursday. Simpson is serving a minimum nine-year jail sentence with a maximum of 33 years for an armed robbery conviction in 2008.
  • Gravatar http://www.ordergolfau.com/ July 26th, 2017 at 19:45
    For those unfamiliar with the details of Simpson’s past, the dropped glove is in reference to a bloody glove found at the scene of the murders of Simpson’s ex-wife Nicole Brown Simpson and Ron Goldman in 1994. Simpson was acquitted of murder charges, but in a later civil suit filed by Goldman’s family, a jury unanimously found Simpson liable for the wrongful death of and battery against Goldman, and battery against Brown.It appeared in Josh Peter’s story in USA Today on Tuesday regarding Simpson’s plans in the event he is granted parole following a parole hearing on Thursday. Simpson is serving a minimum nine-year jail sentence with a maximum of 33 years for an armed robbery conviction in 2008.
Gravatar