[XeroMobile_oAuth_Core] Device is not defined

Forge Component
(1)
Published on 2017-12-27 by Miguel Amado
1 vote
Published on 2017-12-27 by Miguel Amado

When I set this up and call the XeroApi_Sample screen I get a "device is not defined" error message.


Environment Information

eSpaceVer: 1 (Id=3629, PubId=7722, CompiledWith=10.0.804.0)
RequestUrl: https://My_server_URL/XeroApi_Sample/moduleservices/log?clientTimeInMillis=1551480539441 (Method: POST)
AppDomain: /LM/W3SVC/1/ROOT/XeroApi_Sample-21-131959443206252000
FilePath: C:\...\PS\running\XeroApi_Sample.1029591425\
ClientIp: 81.174.149.123

Locale: en-US
DateFormat: yyyy-MM-dd
PID: 3412 ('w3wp', Started='2/23/2019 3:26:00 PM', Priv=574Mb, Virt=1535Mb)
TID: 145
Thread Name:
.NET: 4.0.30319.42000
Client-Side Log
Stack:

ReferenceError: device is not defined
    at https://MyServer_URL/XeroApi_Sample/scripts/CommonPlugin.controller.js?l4G6BDF29eP2xNFiFko4BA:143:26
    at Controller.e.safeExecuteJSNode (https://MyServer_URL/XeroApi_Sample/scripts/OutSystems.js?pidLfR6nPxctNnaTAtRyAg:9:24514)
    at Controller.CommonPluginController.default.getDeviceID$Action (https://MyServer_URL/XeroApi_Sample/scripts/CommonPlugin.controller.js?l4G6BDF29eP2xNFiFko4BA:94:42)
    at https://MyServer_URL/XeroApi_Sample/scripts/XeroMobileApi.XeroMobileApi.Xero_oAuth1.mvc.js?ipL4coR7veYox7IG+EaCYw:602:55
    at d (https://MyServer_URL/XeroApi_Sample/scripts/OutSystems.js?pidLfR6nPxctNnaTAtRyAg:2:4787)
    at f (https://MyServer_URL/XeroApi_Sample/scripts/OutSystems.js?pidLfR6nPxctNnaTAtRyAg:2:4533)
    at Object.m [as executeAsyncFlow] (https://MyServer_URL/XeroApi_Sample/scripts/OutSystems.js?pidLfR6nPxctNnaTAtRyAg:2:5306)
    at Controller._loginOnClick$Action (https://MyServer_URL/XeroApi_Sample/scripts/XeroMobileApi.XeroMobileApi.Xero_oAuth1.mvc.js?ipL4coR7veYox7IG+EaCYw:599:16)
    at https://MyServer_URL/XeroApi_Sample/scripts/OutSystems.js?pidLfR6nPxctNnaTAtRyAg:10:1169
    at d (https://MyServer_URL/XeroApi_Sample/scripts/OutSystems.js?pidLfR6nPxctNnaTAtRyAg:2:4787)



Hello Charles,


Are you running the sample on a generated app in a mobile device? 

If so, did you install the last build of the app that you generated ? 


Cheers,

Miguel Amado