It seems that the mobile device queries the event immediately after it has been added. Now for some reason the mobile says that sync failed. If i start from a "clean table" and leave everything to the database and the phone gets the item as a new item from server, everything works. So the problem is that some fields are not the same when the phone inserts the entry and then gets it from the db. Which fields should have the same content? All times are now the same (start,end,modified) and so are body and subject. Id is different and at least the timezone binary looks different (how is the timezone formed and how can i extract information about it)?
I made a little test, cleared everything. First sync, nothing moves because there is no messages neither in server or mobile. I modified the server so that it sends the exactly same item back (using temp variable) and then i add a new event to the mobile and sync. It still fails... var_dump shows the same content for both (in and out) items (the id is changed).
Ok, it now works ;D I didn't notice that the Change should return an array like StatMessage...