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 9119607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:26:12+00:00 2026-06-17T05:26:12+00:00

I understood that my previous question was too vague and didn’t explain awfully much.

  • 0

I understood that my previous question was too vague and didn’t explain awfully much. I hope this post will be more understandable.

I’m currently creating an app which will pull certain @Twitter feeds as well as certain Twitter #hashtags and show them in an Windows 8 Modern UI app. Showing these feeds in-app works great, but I want to notify the user with a toast notification whenever a new tweet is either posted by one of the certain @Twitter users, OR when a new tweet is marked with a certain #hashtag.

From my last question, I was made aware of Azure’s role in this, and after trying to create a working notification script with snippets I’ve found so far, I’ve ended up with something which doesn’t really work:
(based on: http://webhole.net/2010/05/10/how-to-check-for-new-tweets-from-a-user/)

function insert(item, user, request) {


    var oldTweetId=0;
    var username="9gag";
    var url='http://api.twitter.com/1/statuses/user_timeline/'+username+'.json?callback=?';
setInterval(checkStream,5000);

    function checkStream()
    {
        $.getJSON(url,function(tweets){
            if(tweets[0].id!=oldTweetId)
            {
                request.respond();
                push.wns.sendToastText04( {
                     text1: "ny tweet!"
            }, {
                success: function(pushResponse) {
                    console.log("Sent push:", pushResponse);
                }
            });
            }
        });
    }
}

Would anyone know how to actually make this work? I’ve tried a few different approaches, but to avoid unnecessary non-working code snippets, I’ll post my latest one (which doesn’t work).

  • 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-06-17T05:26:13+00:00Added an answer on June 17, 2026 at 5:26 am

    Toast notifications can be made by your running app, or they can be pushed to a user’s device by a two-part web service. It’s not obvious to me where exactly your JS code snippet runs. Are you running that in a Node.js app on a server and calling WNS?

    I would first work on getting toast notifications to work in your standalone app, not using the push service. The Windows 8 Toast notification sample in JS/C# will show you how. Once you’re happy with locally generated toast notifications, you can tackle using WNS.

    The two-part web service I mentioned consists of:

    1. A web service you write and host someplace to determine when to send a notification and what to say. This can be hosted in Azure or anyplace else. The obvious choice is Windows Azure Mobile Services, but you don’t have to use it.
    2. The web service in part 1 communicates with the Windows Notification Service (WNS) to actually push the notification to a device.

    Probably the simplest way to do push notifications from the cloud is to use Windows Azure Mobile Services. A sample by Nick Harris will show you how, but you’ll want to read up on WAMS first.

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

Sidebar

Related Questions

From my previous question I understood that Rails creates a controller instance for every
Guys ! I understood that my previous question did not meant to you guys
This is a follow up to my previous question about using XMLHttpRequest() to post
From my previous question I understood that I have to change my SVN repository
Note that this is a follow-up question from my previous one: How to memorize
I just have a question regarding SimpleJSON's documentation. Is it implicit understood that functions
After I thought that I've understood how they work, I tried this: NSString *str1
That is a followup from my previous question , but you don't need to
This is somewhat of a followup to my previous question , where people pointed
This is a continuation of my previous question What is the efficient way to

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.