Contact picker ApplicationControl on Galaxy Watch

Contact picker ApplicationControl on Galaxy Watch

BY 06 Jan 2019 Web Application Development

It seems that when using the recommended ApplicationControl on Galaxy watch there is “No matched application found”.

var appControlData = [new tizen.ApplicationControlData('http://tizen.org/appcontrol/data/selection_mode',
    ['single']), new tizen.ApplicationControlData('http://tizen.org/appcontrol/data/type', ['id', 'phone'])];

var appControl = new tizen.ApplicationControl('http://tizen.org/appcontrol/operation/pick',
    null, 'application/vnd.tizen.contact',
    null, appControlData, 'GROUP');

I have tried instead launching the w-contacts2 application with ApplicationControl but this does not give any successful callback on selection but instead opens the contact. How would I replicate what happens in the w-contacts2 widget on galaxy watch?

tizen.application.launchAppControl(appControl2, 'com.samsung.w-contacts2',
    function () {
        console.error("Launch application control succeed");
    }, function (e) {
        console.error("Launch application control failed, reason: " + e.message);
    }, appControlReplyCallback);
Written by