cancel
Showing results for 
Search instead for 
Did you mean: 

Push on windows mobile ... SUP

Former Member
0 Kudos

How do I get push to work ? Code sample please. On windoes mobile 6.1. Using C sharp and SUP 2.1.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184221
Contributor
0 Kudos

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

Former Member
0 Kudos

Have you got a working example you can point me to please.

former_member184221
Contributor
0 Kudos

See here http://scn.sap.com/message/13762984#13762984  for a working example of Push.

Answers (1)

Answers (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Your link points at SUP 2.2, do I need that version ?