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:
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
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