locked
Syncing to a WPD RRS feed

  • Question

  • Hello everyone,

    I have a - maybe - naive question, but at the moment I am completely stuck. My question is:

    I am interested in syncing an application to a mobile phone using Windows 7's Sync Center. MSDN states that the phone is connected by a WPD Sync Provider which abstracts away and hardware specific issues. To me this means that every phone looks the same to me, right?

    Now on the other side I need to write a sync provider for my application. MSDN says that there are three ways to accomplish this: Use a Sync Framework Simple Provider, a Sync Framework Custom Provider or a Windows Sync Provider.

    Now the question: It is nice that it is not so hard to write a MSF Simple Provider - but the ____ do I transfer actual data?

    E.g., if I want to transfer a vCard from my app to the phone - how do I do that? What data format do I have to use? ...?

    Cheerio,


    Golo
    • Moved by Max Wang_1983 Thursday, April 21, 2011 1:27 AM forum consolidation (From:SyncFx - Technical Discussion [ReadOnly])
    Wednesday, May 20, 2009 6:28 AM

Answers

  • The actual data is transferred during LoadChangeData call. MSF will call this method on your Simple Provider provider implementation to load the source data.

    I have not exactly looked at the WPD Provider API, so I cannot answer what data format you are supposed to use. If you are using native SimpleProvide API, this is IUnknown. If you are using managed, this is object. The important thing is the destination must be able to interpret this data. i.e. if you are sending vCard, the destination must be able to understand that the item being received is vCard.

    If you have more specific questions, let me know.

    Thanks,

    Patrick
    Wednesday, June 24, 2009 4:59 PM

All replies

  • Hello Golo,
    I have a few clarifying questions I'd like to ask.

    Are you syncing using 'Sync Center' or are you trying to sync with the new WPD Sync Provider included in the Device Stage?

    The Win7 portable device PIM sync is based on properties included in a schema that should be published shortly.  I'll flag this and follow up once the schema is published. However if you want to transfer any object, as long as you can define it on both sides (the PC and the phone) you can pass it using the IPortableDeviceValues interface in WPD.  This will work as the syncronization in win7 is extensible, but obviously we can't guarantee that any win7 phone will interpret this correctly if it is not defined within the schema. 

    I hope this helps, and please ask additional questions if you need.

    Tuesday, June 16, 2009 5:49 PM
  • The actual data is transferred during LoadChangeData call. MSF will call this method on your Simple Provider provider implementation to load the source data.

    I have not exactly looked at the WPD Provider API, so I cannot answer what data format you are supposed to use. If you are using native SimpleProvide API, this is IUnknown. If you are using managed, this is object. The important thing is the destination must be able to interpret this data. i.e. if you are sending vCard, the destination must be able to understand that the item being received is vCard.

    If you have more specific questions, let me know.

    Thanks,

    Patrick
    Wednesday, June 24, 2009 4:59 PM