Michael Martinez
Posts: 0
Joined: Fri Aug 30, 2013 7:00 pm

Trouble reading contact data.

On a mobile device (both android and iphone), I cannot seem to read contact data beyond a contact name when using the device contact service.

Everything seems to work fine when using echo data.

I'm not sure what question to ask beyond that. Can you guys offer any help?

My echo data is as follows:

[
{
"displayName":"Mark Twain",
"name":{
"formatted":"Mark Twain",
"familyName":"Twain",
"givenName":"Tom",
"middleName":"",
"name":"Mark"
},
"phoneNumbers":[
{
"type":"mobile",
"value":"5041234567",
"pref":"false"
}, {
"type":"home",
"value":"5041234567",
"pref":"false"
}
, {
"type":"business",
"value":"5041237654",
"pref":"true"
}
, {
"type":"office",
"value":"5041234567",
"pref":"false"
}
, {
"type":"car",
"value":"5041234567",
"pref":"false"
}

Code: Select all

     ], 
     "emails":[ 
         { 
             "type":"custom", 
             "value":"a href="mailto:test01@mail.com" rel="nofollow"test01@mail.com/a", 
             "pref":"false" 
         }, 

{
"type":"Work",
"value":"a href="mailto:test01@mail.com" rel="nofollow"test01@mail.com/a",
"pref":"true"
}

Code: Select all

     ] 
 }, 
 { 
     "displayName":"Tom Sawyer", 
     "name":{ 
         "formatted":"Tom Sawyer", 
         "familyName":"Sawyer", 
         "givenName":"Tom", 
         "middleName":"", 
         "name":"Tom" 
     }, 
     "phoneNumbers":[ 
         { 
             "type":"mobile", 
             "value":"5048649856", 
             "pref":"false" 
         } 
     ], 
     "emails":[ 
         { 
             "type":"custom", 
             "value":"a href="mailto:test02@mail.com" rel="nofollow"test02@mail.com/a", 
             "pref":"false" 
         } 
     ] 
 }, 
 { 
     "displayName":"Huckleberry Finn", 
     "name":{ 
         "formatted":"Huckleberry Finn", 
         "familyName":"Finn", 
         "givenName":"Huckleberry", 
         "middleName":"", 
         "name":"Huckleberry" 
     }, 
     "phoneNumbers":[ 
         { 
             "type":"mobile", 
             "value":"8586542365", 
             "pref":"false" 
         } 
     ], 
     "emails":[ 
         { 
             "type":"custom", 
             "value":"a href="mailto:test02@mail.com" rel="nofollow"test02@mail.com/a", 
             "pref":"false" 
         } 
     ] 
 } 

]

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Trouble reading contact data.

Hello! How do you test app? Do you install on device or use Appery.io Tester?

Michael Martinez
Posts: 0
Joined: Fri Aug 30, 2013 7:00 pm

Trouble reading contact data.

I tested on the device. Installed from both testflight and the qr code download screens.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Trouble reading contact data.

Please uncheck Echo option.

Michael Martinez
Posts: 0
Joined: Fri Aug 30, 2013 7:00 pm

Trouble reading contact data.

Done. Sorry and thanks :)

Michael Martinez
Posts: 0
Joined: Fri Aug 30, 2013 7:00 pm

Trouble reading contact data.

Anything on this one yet? I've found that there was "name" specified as a field in mapping screen. I thought that was the solution to my problem until I specified phoneNumbers instead. That returned absolutely no data instead of a bunch of nulls. Surely someone has encountered this before?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Trouble reading contact data.

Hello! Sorry for misunderstanding, I thought from your previous comment the issue is solved. If I understand correctly original problem is that you can't read contact data, it only returns echo results (when Echo mode is enabled). Please try to disable Echo mode.

Michael Martinez
Posts: 0
Joined: Fri Aug 30, 2013 7:00 pm

Trouble reading contact data.

Got this one sorted out. Thank you. Naming fields that you want to return is a bad idea. Use "*" instead.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Trouble reading contact data.

Thank you for update!

Return to “Issues”