The task is to create a Tizen Wearable App, targeting Tizen 2.3.2, using the TAU framework.
The application itself consists of two parts by design:
A service is running in the background, receiving notifications from a server. Messages received by the service are being passed to the UI-application.
The UI itself is being either started or brought to the foreground by service, whenever a message is being received. Multiple 'popups' exist within the application, which handle the each (possible) notification accordingly. The popups are being opened using
tau.openPopup('popId')
.
However, calling tau.openPopup
from code results in an error:
TypeError: 'undefined' is not a function (evaluating 'tau.openPopup('process-popup')')
Calling the same expression from the development console (Chrome DevTools) does work as intented, implying that the library was indeed loaded properly and its methods are being exported properly.
Recreating the GUI application (using the template provided by Tizen Studio) did NOT solve the problem. At this point I ran out of ideas; probably due to my lack of experience in working with JavaScript.
What could be the cause of such peculiar behavior?