Click here to Skip to main content
15,891,136 members
Articles / Operating Systems / Win8

Hold On, I Forgot to Mention…

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
23 Oct 2012CPOL2 min read 4.3K  
I forgot to mention...

There’s always that point when you are maintaining and developing your live project when you really wish you had a way to communicate to your users, it could be as simple as a “Check this out” or as worrying as “My backend service provider just crashed, please check for my update”.

In the past, this would require you to host your own web service or hold some XML and have your app check it when it started and then the trick of managing a separate page to look up the updates (actually the YLAD – Your Last About Dialog project has such a page ready built for you!), well it was brought to our attention that you could just as easy use AdRotator to do this for you!

Get Me Some Updates!

We noticed an amazing pattern being used by some apps where they were presenting their notifications to users as toasts or banners in their apps which is exactly how AdRotator works and we thought the idea was so fantastic that here’s a separate post just for it.

The idea is simple, thanks to the built in Remote House Ad Support available in AdRotator already:

  1. Create an XAML user control and host the XAML somewhere on the web, probably best where you host your remote AdRotator configuration (we recommend signing up for a FREE Azure or AppHarbour account and link it to your source control of choice), we use AppHarbour for the AdRotator examples.
  2. Update your Remote XML configuration for AdRotator in your app to set a remote URL for the House Ad thus:
    XML
    <Probabilities AdType="DefaultHouseAd" 
        AppID="http://adrotator.apphb.com/SampleRemoteHouseAd.xaml"/>
  3. Done, easy eh!

If you want, you could even disable the other AdProviders for a time to display your notice or just add a probability so that it cycles in, just depends how important your notice is.

You could even have a second dedicated Ad using the Sliding Ad technique with its own remote configuration to only enable it when needed.

Possibilities! Possibilities!

Coming Soon

There’s always more to come, with the updates coming soon, you’ll be able to have multiple house ads (as well as other providers) so you can have several notices rolling in.

Enjoy!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect ZenithMoon Studios
United Kingdom United Kingdom
Long-time game developer / IT maniac.
By day I architect, design, build and deliver enriching Mixed Reality solutions to clients, bringing the work of AR/VR to light in new and interesting ways, by night I Masquerade as the Master Chief of ZenithMoon Studios, my own game development studio.

At heart, I am a community developer breaking down lots of fun and curious technologies and bringing them to the masses.

I'm also a contributor to several open-source projects, most notably, the Reality Toolkit and all the services provided by the Reality Collective, The Unity-UI-Extensions project, as well as in the past the AdRotator advertising rotator project for Windows and Windows Phone.

Currently, I spend my time fulfilling contracts in the Mixed Reality space (primarily for an XR experience firm called Ethar), writing books, technically reviewing tons of material and continuing my long tradition of contributing to open-source development, as well as delivering talks, but that goes without saying Big Grin | :-D

Mixed Reality MVP, Xbox Ambassador, MS GameDevelopment Ambassador & Best selling author:

[Accelerating Unity Through Automation](https://www.amazon.co.uk/Accelerating-Unity-Through-Automation-Offloading/dp/1484295072/ref=rvi_sccl_3/262-0817396-1418043)
[Mastering Unity 2D Game Development] (https://www.packtpub.com/game-development/mastering-unity-2d-game-development)
[Unity 3D UI Essentials] (https://www.packtpub.com/game-development/unity-3d-gui-essentials)

Comments and Discussions

 
-- There are no messages in this forum --