简体   繁体   中英

Twitter Digits method ‘lookupContactMatches’ not returning any matches

I am using Twitter Digits and have 3 iPhones that are authenticating correctly and uploading contact books successfully.

However, lookupContactMatchesWithCursor keeps displaying an empty array, despite all 3 phones having each other as contacts. There are no error messages.

Any help or ideas would be much appreciated.

I had the same problem on Android. Before calling startContactsUpload, try deleting previous contact uploads using deleteAllUploadedContacts. The aforementioned methods are Android APIs but I'm sure there are equivalents for iOS. Also, I think that there's a quota limit per day.

Digits.getInstance().getContactsClient().deleteAllUploadedContacts(new ContactsCallback<Response>() {
        @Override
        public void success(Result<Response> result) {
            Digits.getInstance().getContactsClient().startContactsUpload();
        }

        @Override
        public void failure(TwitterException e) {
            e.printStackTrace();
            Digits.getInstance().getContactsClient().startContactsUpload();
        }
    });

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM