After adding following object in messages.js (located at myProject/apps/myApp/common):
WL.ClientMessages = {
wlSettings : "myApp settings"
};
Although it successfully changed from "Worklight Settings" to "myApp settings" in Android's OptionsMenu, when I look in Logcat it shows the following error:
Uncaught ReferenceError: WL is not defined at file:///data/data/com.test/files/www/default/js/messages.js:10
Also, if I trigger a Direct Update by changing a web resource, it fails with the following error:
tag: test(my app's name)
[http://192.168.1.5:10080/test/apps/services/api/test/android/composite] exception. TypeError: Cannot call method 'replace' of undefined
tag:CordovaLog
Uncaught TypeError: Cannot call method 'replace' of undefined
tag: Web Console
Uncaught TypeError: Cannot call method 'replace' of undefined at file:///data/data/com.test/files/www/default/wlclient/js/worklight.js:1763