Page 1 of 1

Trouble reading contact data.

Posted: Mon Dec 09, 2013 6:43 pm
by Michael Martinez

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" 
         } 
     ] 
 } 

]


Trouble reading contact data.

Posted: Mon Dec 09, 2013 6:50 pm
by Maryna Brodina

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


Trouble reading contact data.

Posted: Mon Dec 09, 2013 6:51 pm
by Michael Martinez

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


Trouble reading contact data.

Posted: Mon Dec 09, 2013 7:43 pm
by Maryna Brodina

Please uncheck Echo option.


Trouble reading contact data.

Posted: Mon Dec 09, 2013 7:50 pm
by Michael Martinez

Done. Sorry and thanks :)


Trouble reading contact data.

Posted: Tue Dec 10, 2013 8:25 pm
by Michael Martinez

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?


Trouble reading contact data.

Posted: Tue Dec 10, 2013 8:37 pm
by Maryna Brodina

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.


Trouble reading contact data.

Posted: Tue Dec 10, 2013 9:05 pm
by Michael Martinez

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


Trouble reading contact data.

Posted: Tue Dec 10, 2013 9:18 pm
by Maryna Brodina

Thank you for update!