error log: cordova is not defined, Can't find variable: cordova

error log: cordova is not defined, Can't find variable: cordova

  

i have error from monitoring error log, any idea how i can approach to solve it?


Error Detail
Back to Log
Id:
a8afa1dd-6cb0-4f31-b184-9a84742c5315
Time of Log:
2017-03-31 10:54:38
eSpace:
WinToto
Tenant:
Users
User:

Session Id:
No session
Server:
S1OAB-LT2DFN
Module:

Message:


cordova is not defined


Environment InformationeSpaceVer: 421 (Id=771, PubId=751, CompiledWith=10.0.200.2)
RequestUrl: https://toto.outsystemscloud.com/WinToto/moduleservices/log?1490957679649 (Method: POST)
AppDomain: /LM/W3SVC/68/ROOT/WinToto-114-131348475394923726
FilePath: C:\OutSystems\Sandboxes\BK4KH0065\Platform Server\running\WinToto\
ClientIp: 119.56.102.209
Locale: en-US
DateFormat: yyyy-MM-dd
PID: 22640 ('w3wp', Started='2/21/2017 12:52:56 AM', Priv=609Mb, Virt=18306Mb)
TID: 174
Thread Name:
.NET: 4.0.30319.42000
Client-Side Log
Stack:
ReferenceError: cordova is not defined
    at https://toto.outsystemscloud.com/WinToto/scripts/CommonPlugin.controller.js?gbgwhWs_pQGqL7UX0ASL1A:212:26
    at Controller.e.safeExecuteJSNode (https://toto.outsystemscloud.com/wintoto/scripts/OutSystems.js?sdcuBcomxTNu8PYGfXaUiQ:9:8050)
    at Object.CommonPluginController.default.safeClientActionDefinitions.getPlatformAction (https://toto.outsystemscloud.com/WinToto/scripts/CommonPlugin.controller.js?gbgwhWs_pQGqL7UX0ASL1A:171:58)
    at https://toto.outsystemscloud.com/WinToto/scripts/WinToto.MainFlow.ScanTicket.controller.js?WwV_BUlZwGkiN8vvpM03yA:126:63
    at d (https://toto.outsystemscloud.com/wintoto/scripts/OutSystems.js?sdcuBcomxTNu8PYGfXaUiQ:1:31225)
    at f (https://toto.outsystemscloud.com/wintoto/scripts/OutSystems.js?sdcuBcomxTNu8PYGfXaUiQ:1:30971)
    at Object.m [as executeAsyncFlow] (https://toto.outsystemscloud.com/wintoto/scripts/OutSystems.js?sdcuBcomxTNu8PYGfXaUiQ:1:31749)
    at Controller.onUploadImageAction (https://toto.outsystemscloud.com/WinToto/scripts/WinToto.MainFlow.ScanTicket.controller.js?WwV_BUlZwGkiN8vvpM03yA:112:16)
    at https://toto.outsystemscloud.com/wintoto/scripts/OutSystems.js?sdcuBcomxTNu8PYGfXaUiQ:9:16410
    at d (https://toto.outsystemscloud.com/wintoto/scripts/OutSystems.js?sdcuBcomxTNu8PYGfXaUiQ:1:31225)




Error Detail
Back to Log
Id:
f28cc8c0-31dc-4db5-9969-db89559a5c20
Time of Log:
2017-03-28 01:53:59
eSpace:
WinToto
Tenant:
Users
User:

Session Id:
No session
Server:
S1OAB-LT2DFN
Module:

Message:


Can't find variable: cordova


Environment InformationeSpaceVer: 421 (Id=771, PubId=751, CompiledWith=10.0.200.2)
RequestUrl: https://toto.outsystemscloud.com/wintoto/moduleservices/log?1490666039480 (Method: POST)
AppDomain: /LM/W3SVC/68/ROOT/WinToto-114-131348475394923726
FilePath: C:\OutSystems\Sandboxes\BK4KH0065\Platform Server\running\WinToto\
ClientIp: 119.56.121.145
Locale: en-US
DateFormat: yyyy-MM-dd
PID: 22640 ('w3wp', Started='2/21/2017 12:52:56 AM', Priv=611Mb, Virt=18304Mb)
TID: 257
Thread Name:
.NET: 4.0.30319.42000
Client-Side Log
Stack:
https://toto.outsystemscloud.com/WinToto/scripts/CommonPlugin.controller.js?gbgwhWs_pQGqL7UX0ASL1A:212:33
[native code]
safeExecuteJSNode@https://toto.outsystemscloud.com/wintoto/scripts/OutSystems.js?sdcuBcomxTNu8PYGfXaUiQ:9:8051
getPlatformAction@https://toto.outsystemscloud.com/WinToto/scripts/CommonPlugin.controller.js?gbgwhWs_pQGqL7UX0ASL1A:171:75
getOperatingSystemAction@https://toto.outsystemscloud.com/WinToto/scripts/CommonPlugin.controller.js?gbgwhWs_pQGqL7UX0ASL1A:108:80
https://toto.outsystemscloud.com/WinToto/scripts/WinToto.MainFlow.ScanTicket.controller.js?WwV_BUlZwGkiN8vvpM03yA:124:94
d@https://toto.outsystemscloud.com/wintoto/scripts/OutSystems.js?sdcuBcomxTNu8PYGfXaUiQ:1:31226
f@https://toto.outsystemscloud.com/wintoto/scripts/OutSystems.js?sdcuBcomxTNu8PYGfXaUiQ:1:30972
m@https://toto.outsystemscloud.com/wintoto/scripts/OutSystems.js?sdcuBcomxTNu8PYGfXaUiQ:1:31750
onUploadImageAction@https://toto.outsystemscloud.com/WinToto/scripts/WinToto.MainFlow.ScanTicket.controller.js?WwV_BUlZwGkiN8vvpM03yA:112:32
https://toto.outsystemscloud.com/wintoto/scripts/OutSystems.js?sdcuBcomxTNu8PYGfXaUiQ:9:16415
d@https://toto.outsystemscloud.com/wintoto/scripts/OutSystems.js?sdcuBcomxTNu8PYGfXaUiQ:1:31226
f@https://toto.outsystemscloud.com/wintoto/scripts/OutSystems.js?sdcuBcomxTNu8PYGfXaUiQ:1:30972
p@https://toto.outsystemscloud.com/wintoto/scripts/OutSystems.js?sdcuBcomxTNu8PYGfXaUiQ:1:31469
safeExecuteClientAction@https://toto.outsystemscloud.com/wintoto/scripts/OutSystems.js?sdcuBcomxTNu8PYGfXaUiQ:9:16389
onUploadImageAction@https://toto.outsystemscloud.com/WinToto/scripts/WinToto.MainFlow.ScanTicket.controller.js?WwV_BUlZwGkiN8vvpM03yA:17:42
https://toto.outsystemscloud.com/WinToto/scripts/WinToto.MainFlow.ScanTicket.view.js?EUDV7KtRnC9KQgEgAgSk7Q:467:52
promiseReactionJob@[native code]


Hello Linguo You.

Seems that you are trying to use native capabilities while opening your application in a desktop browser. If you generate a mobile application, you shouldn't get that error.

Thanks