语言

Menu
Sites
Language
Wearable Web App doesn't change page, when receiving multiple messages which each require screen change

Our Tizen Web app running on Samsung Wearable 3.0 sometimes doesn't change page, when receiving multiple messages which each require screen change.  Specifically, if we ask the app to change screens too quickly, it simply disregards the last request.

We added a delay timeout for changing pages, but it didn't fix the issue.

function delayedChangePage(toPage) {
        lastGoToPage = toPage;
        window.setTimeout(
            function() {
                if (lastGoToPage === toPage) {
                    changePage(toPage);
                }
            }, 250);
    }



function changePage(toPage) {
        tau.changePage(toPage);
    }

Is this a possible issue in the Tizen OS?
Is there a better or different way or a recommended workaround to resolve this issue? 

Thank you in advance,
Narges

编辑者为: Narges Aghakazem 04 3月, 2019