Rho :: RhoContact.find () is not working in Rhodes 5.0.2 version, or am I doing something wrong, will someone help me?
if System::get_property('platform') == 'APPLE'
contact = {
"first_name" => @params['first_name'],
"mobile_number" => "(" + @params['mobile_number_ddd'] + ") " + @params['mobile_number'],
"person_note" => @params['addressDescription'] + " " + @params['addressNumber'] + " " + @params['neighborhood'] + " " + @params['cityName'] + " " + @params['cityUF']
}
else
contact = {
"first_name" => @params['first_name'],
"mobile_number" => "(" + @params['mobile_number_ddd'] + ") " + @params['mobile_number']
}
end
@contact2 = Rho::RhoContact.find(contact)
Hi Fernando,
We will try it locally and get back to you. In the mean time, could please paste your log?
Visnupriya R
Kutir Mobility
Points: 0
You voted ‘up’
build.yml
capabiliities:
- pim
- phone
rholog.txt
Points: 0
You voted ‘up’
Hi Fernando,
FYI, Rhosimulator won't support RhoContact. Have you tried it on a device?
Try as shown below to find particular contact
Visnupriya R
Kutir Mobility
Points: 0
You voted ‘up’
Visnupriya R,
Thanks for the help now worked!
More here is my request for the MOTOROLA update the documentation because this command in there anywhere.
Rhomobile | RhoContact API
Points: 0
You voted ‘up’
The real iOS simulator supports Contacts. Just not RhoSimulator. So, you can test on a device or iOS simulator.
Points: 0
You voted ‘up’
I try:
@contacts = Rho::RhoContact.select('first_name' => @params['first_name'],
'mobile_number' => "(" + @params['mobile_number_ddd'] + ") " + @params['mobile_number'])
But my application crash on some devices when I try it. help me?
Points: 0
You voted ‘up’
Hi Bruno,
Can you give some more details like
1. What devices got crashed with this app?
2. Log trace when the crash happens
Visnupriya R
Kutir Mobility
Points: 0
You voted ‘up’
Bruno,
Checks Log activating Rhoconfig.txt and put the output here for us.
On my Moto X ta functioning properly.
Points: 0
You voted ‘up’
Hi,
The problem happens in iOS, regardless of the iOS device. I did test with a list of contacts synced with hotmail, facebook, etc ... and the app closes with the crash. If I retreat to sync and delete contacts, my app works correctly.
RhoContact.select can give problem in this case?
Thanks Fernando! In android did not have this problem.
Points: 0
You voted ‘up’
Can anyone help me ?
Points: 0
You voted ‘up’
There is a fix for this problem in the current Rhodes master. (Not released yet, though.) See here for more info: iOS: RhoContact.find can crash app · Issue #812 · rhomobile/rhodes · GitHub
Points: 0
You voted ‘up’