How to connect to a websync client with out the running the app( after first run)

34 views
Skip to first unread message

kishor...@goldenpedia.com

unread,
Mar 21, 2013, 8:32:08 AM3/21/13
to web...@googlegroups.com

I am new to the web sync usage in windows 8. In My app i created the client when ever the app starts. Then i am getting the events successfully. But when i sign into my windows 8 PC or with out running the app( after first run) , i have no connection from the app with the client. So how can i connect the client. In general windows 8 apps are using the Push Notification Service. So I am unable to find the solution.
Can Any one please share your ideas.

Thanks & Regards,
Kishore Naidu


Jerod Venema

unread,
Mar 21, 2013, 9:08:13 AM3/21/13
to web...@googlegroups.com
Hey Kishore,

When you close an app, it goes into a suspended state, which automatically triggers all connections to close. If you bring the app back to the foreground, it should immediately resume connections.

We're looking into implementing persistent connections using the new ControlChannelTrigger feature from MS, but at the moment that's unavailable.

Best,




--
You received this message because you are subscribed to the Google Groups "WebSync" group.
To unsubscribe from this group and stop receiving emails from it, send an email to websync+u...@googlegroups.com.
To post to this group, send email to web...@googlegroups.com.
Visit this group at http://groups.google.com/group/websync?hl=en.
To view this discussion on the web visit https://groups.google.com/d/msg/websync/-/ehOe9GKw-L4J.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Jerod Venema
Frozen Mountain Software
919-300-5141 (United States)
604-227-2453 (Canada)
888-379-6686 (Extension 101)

kishor...@goldenpedia.com

unread,
Mar 26, 2013, 1:02:19 AM3/26/13
to web...@googlegroups.com

 HI Jerod,
 
           I have used Background task to connect to the web sync . The client connection ,binding and subscription all are successful.  But On Receive is not firing when the message is sent from the server. Is there any other solution. Please suggest the best way to implement the websync 4 for windows 8 with out running the app ( through background task ).

Jerod Venema

unread,
Mar 26, 2013, 9:29:46 AM3/26/13
to web...@googlegroups.com
Are you grabbing the deferral object and holding on to it?

public async void Run(IBackgroundTaskInstance taskInstance){
  var deferral = taskInstance.GetDeferral();
}

Since WebSync has a lot of async communication, you'll have to hold on to that deferral or the task will end.

I'm not sure off the top of my head if Win8 will automatically cancel tasks run in the background like that after a certain time or not; we'll check on our side, but you may want to investigate that as well.

--
You received this message because you are subscribed to the Google Groups "WebSync" group.
To unsubscribe from this group and stop receiving emails from it, send an email to websync+u...@googlegroups.com.
To post to this group, send email to web...@googlegroups.com.
Visit this group at http://groups.google.com/group/websync?hl=en.
To view this discussion on the web visit https://groups.google.com/d/msg/websync/-/tkQm1BdrSZUJ.

For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages