Question
Why is this STATUS API not working?
I'm trying to use the STATUS_API in my application, but it simply doesn't work. Am I doing it wrong or there anything more to it?
adobeDCView.registerCallback(
AdobeDC.View.Enum.CallbackType.STATUS_API,
function (metaData) {
/* Resolve or reject response in given format */
/* Status callback success case */
return new Promise((resolve, reject) => {
resolve({
code: AdobeDC.View.Enum.ApiResponseCode.SUCCESS,
});
});
/* Status callback file modified case */
return new Promise((resolve, reject) => {
resolve({
code: AdobeDC.View.Enum.ApiResponseCode.FILE_MODIFIED,
data: {
modifiedBy: {
name: "iiii",
mail: "mail@mail.com",
}
}
});
});
},
{
filePollFrequency: 10,
keepPolling: true,
}
);
Even after making changes, there is no update on front end, no error on console either
