Traccar Manager on android wont load

Anton Tananaev7 years ago

You can connect PC Chrome to remotely debug mobile browser.

Pieter du Preez7 years ago

That is quite neat. Never knew that. The app doesn't load on the Pixel with the "hacked" load.js, neither does it load on the web browser (of the Pixel). Here I can see in the developer panel the following:

Uncaught TypeError: Cannot read property '1' of null
    at new Browser (ext-all.js:22)
    at ext-all.js:22
    at ext-all.js:22
ext-all.js:22 Uncaught TypeError: Cannot read property 'defaultConfig' of undefined
    at Function.<anonymous> (ext-all.js:22)
    at Function.doProcess (ext-all.js:22)
    at Function.process (ext-all.js:22)
    at new d (ext-all.js:22)
    at Ext.Inventory.create (ext-all.js:22)
    at Object.define (ext-all.js:22)
    at cdnjs.cloudflare.com/ajax/libs/extjs/6.2.0/packages/charts/classic/charts.js:1
cdnjs.cloudflare.com/ajax/libs/extjs/6.2.0/classic/locale/locale-en.js:1 Uncaught TypeError: Ext.onReady is not a function
    at cdnjs.cloudflare.com/ajax/libs/extjs/6.2.0/classic/locale/locale-en.js:1
load.js:1 Uncaught TypeError: Cannot read property 'request' of undefined
    at load.js:1
Anton Tananaev7 years ago

Try to load debug.html version. It should give us more useful output.

Pieter du Preez7 years ago

Opening debug.html on my Pixel Browser

[Violation] Forced reflow while executing JavaScript took 41ms
ext-all-debug.js:16383 Uncaught TypeError: Cannot read property '1' of null
    at new Browser (ext-all-debug.js:16383)
    at ext-all-debug.js:16615
    at ext-all-debug.js:16625
Browser @ ext-all-debug.js:16383
(anonymous) @ ext-all-debug.js:16615
(anonymous) @ ext-all-debug.js:16625
ext-all-debug.js:13398 Uncaught TypeError: Cannot read property 'defaultConfig' of undefined
    at Function.<anonymous> (ext-all-debug.js:13398)
    at Function.doProcess (ext-all-debug.js:13236)
    at Function.process (ext-all-debug.js:13227)
    at new ExtClass (ext-all-debug.js:13163)
    at Ext.Inventory.create (ext-all-debug.js:14824)
    at Object.define (ext-all-debug.js:15807)
    at charts-debug.js:5
(anonymous) @ ext-all-debug.js:13398
doProcess @ ext-all-debug.js:13236
process @ ext-all-debug.js:13227
ExtClass @ ext-all-debug.js:13163
create @ ext-all-debug.js:14824
define @ ext-all-debug.js:15807
(anonymous) @ charts-debug.js:5
locale-en.js:1 Uncaught TypeError: Ext.onReady is not a function
    at locale-en.js:1
(anonymous) @ locale-en.js:1
load.js:110 Uncaught TypeError: Cannot read property 'setConfig' of undefined
    at load.js:110
(anonymous) @ load.js:110
Pieter du Preez7 years ago

This is the first error in ext-all-debug.js: Line 16383

    if (userAgent.match(/FB/) && browserName === "Other") {
        browserName = browserNames.safari;
        engineName = engineNames.webkit;
    }
    if (userAgent.match(/Android.*Chrome/g)) {
        browserName = 'ChromeMobile';
    }
    if (userAgent.match(/OPR/)) {
        browserName = 'Opera';
        browserMatch = userAgent.match(/OPR\/(\d+.\d+)/);
        browserVersion = new Ext.Version(browserMatch[1]);
    }
    Ext.apply(this, {
        engineName: engineName,
        engineVersion: engineVersion,
        name: browserName,
        version: browserVersion
    });
    this.setFlag(browserName, true, publish);
    // e.g., Ext.isIE
Anton Tananaev7 years ago

It's the same error as before. It means that you haven't updated load.js, or you haven't cleared the cache.

Can confirm that the replacement load.js on the Traccar 3.14 server fixes the problem on my Nexus 6P running Android 8.0.0 'Oreo'.

Anduriño6 years ago

Hi Anton!!!
Your Demo server

http://demo5.traccar.org

Its hacked for Android Oreo browser ???

Anton Tananaev6 years ago

Demo servers always run latest official release. As far as I remember it doesn't have the fix for Oreo yet.