on 01-04-2013 6:31 PM
How do I get push to work ? Code sample please. On windoes mobile 6.1. Using C sharp and SUP 2.1.
Well the good news is that it is possible to do.
The bad news is thats its complex and fiddly to setup, when I worked at Sybase I did two successful projects using PUSH notification and Windows Mobile.
OK here in code is what to do in a nutshell:
//Push setup
ISynchronizationGroup sg = SUP101DB.GetSynchronizationGroup("TCNEnabled");
if (!sg.EnableSIS) {
sg.EnableSIS = true;
sg.Interval = 2;
sg.Save();
SUP101DB.Synchronize("TCNEnabled");
}
//On Sync
public int OnSynchronize(GenericList groups, SynchronizationContext context) {
int status = context.Status;
if (status == SynchronizationStatus.STARTING_ON_NOTIFICATION) {
// There is changes on the synchronization group
if (busy) {
return SynchronizationAction.CANCEL;
}
else
{
return SynchronizationAction.CONTINUE;
}
}
return SynchronizationAction.CONTINUE;
}
For more detail look at the documents here: Push Synchronisation Applications
For the full Push API look here: Synchronisation API's
Have fun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
See here http://scn.sap.com/message/13762984#13762984 for a working example of Push.
HI Alex... even i dint see any thing related to Windows with SUP in SCN.
But you can refer this link which is available.Let me know if you find any relevant. without SUP.
Regards. GI.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.