I just started working with addressBook. There’s a pretty basic issue I’m having. Using code modified from the demo sample, this is my onComplete handler returning from a selection of a contact in the showPopup:
local function onContactPopupComplete( event ) print( "event.name:" .. event.name ); print( "event.type:" .. event.type ); if event.data then for k, v in pairs( event.data ) do print( k .. ": " .. v ) end end end
The problem is, the printout of k,v pairs in event.data has things like:
phoneIphone: (number value is the contact’s home number - wrong!)
phoneHome: (work number - wrong!)
phoneMobile: (cell number - correct)
homeEmail: (work email - wrong!)
workEmail (home email - wrong!)
This happens consistently, always returning the same wrong pairings of keys and values. It happens with all or most contacts. It also happens with the email address fields.
Anyone seen this? Any ideas?