Skip to content

[Android] contact.delete() fails with exception "Error optaining group id" #92

Open
@dlcole

Description

@dlcole

I'm encountering an exception with contact.delete() on an Android device (works OK on emulators). The problem occurs with line 438 of contact-model.android.js:

var rawIdCursor = contentResolver.query(android.provider.ContactsContract.RawContacts.CONTENT_URI, ["_id"], "_id = " + id, null, null);
if (!rawIdCursor.moveToFirst()) {
    throw new Error("Error optaining group id");
    return;
}

So far I haven't been able to determine why rawIdCursor.moveToFirst() fails. At this point I'd welcome any insights. This is with the current plugin version, 1.6.2, and {N} 6.8.0.

[edit]

I was only seeing this on one of two devices, so I reset the failing device to factory settings but am still seeing the same problem, except when I also see issue 83 which prevents my deleteContact() from firing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions