Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: [Stream API] Unable to listen for any events on WP8.1

$
0
0
Hi,

I'm tryin to use Streams to avoid periodic Timeline update but I'm unable to fetch any data.

The same also apply when using SampleStream:
await ThreadPool.RunAsync(async (work) => {

      var sampleStream = Tweetinvi.Stream.CreateSampleStream();

      sampleStream.TweetReceived += (sender, args) =>
      {
            Debug.WriteLine("Received Tweet: " + args.Tweet.Text);
      };

       sampleStream.JsonObjectReceived += (sender, args) =>
      {
            Debug.WriteLine("Received JSON: " + args.Json);
      };

      sampleStream.UnmanagedEventReceived += (sender, args) =>
      {
            Debug.WriteLine("UnmanagedEventReceived " + args.JsonMessageReceived);
      };

      await sampleStream.StartStreamAsync();

});
It seems that only the first message is received:

Received JSON: {"created_at" (..)
Received Tweet: <same text here> (...)

In fact, with UserStream I correctly receive all the Ids of the logged user, but nothing else.

To reproduce you can create a blank project for Windows Phone 8.1 and than place the code above in the OnNavigatedTo(NavigationEventArgs e) event.

TY.

Manuel

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>