How to get android & ios native contacts using Qt and show into QML?
We have tried following but we didn't get succeed for same.
Stackoverflow : https://stackoverflow.com/questions/3255377/how-to-obtain-contact-list-in-qt
seems me to very old,
Request you to guide me for proper documentation where cross platform android and ios contact synchronization.
@Dilip_Patel You should first say what exactly did not work. Any error messages?
As far as I know an app must have access rights to access contacts. If you install an app which wants to access contacts the system asks you to allow it. Does you app specify that it needs to access contacts?
@jsulm Actually i am not getting exact document to get contacts from android and ios "device".
I found link reference of stack overflow, there it has replied "it is not possible".
But still i didn't find any such sentence from QT.
So i need example documentation for exact implementation.
Thanks in advance.
@Dilip_Patel I don't know the details, but it looks like this Contacts API was in Qt labs, maybe never released as a stable API, and may have been implemented only on certain platforms (probably for Nokia Symbian phones).
You probably have to use each system's native contacts list, in Android it would be done using the java API.
@Eeli-K You are right. :)
I have tried to put first line in my c++ code ,, "#include<QContactManager>" and i didn't find 'QContactManager' class it self in Qt
I need cross platform solution for device contact synchronization.
But it is not there in examples, no clue, so i guess only option go with native code binding.
Yes it is dangerous but no option.
This class is part of Qt Mobility which should be an Qt add-on since Qt 5.
@jsulm This page talks only about Nokia Ovi store (which doesn't exist anymore) and the last date mentioned is 2011. The link to a release is dead. Do you have up to date information and link? I didn't find any, that's why I said what I said.
Please look at this topic :
It may help. Have also a look at QtAndroidExtras.
Sorry @ibia , currently following link is not reachable on that post.
For future information, Documentation link is changed.
Ok. Thanks you!
Something to take a look at: https://cgit.kde.org/android-qt-mobility.git/
The repository itself is pretty old but it should give a starting point.