Skip to content

Navigation doesn't work: "Uncaught TypeError: Cannot read property 'extras' of null" #2

Description

@axelbrink

When I click my navigation button, nothing happens on the tablet. In the client logging I see the message below. With my very limited JavaScript experience I tried to do some analysis:

  • Using the debugger in Chrome I saw that in launchnavigator.js, line 161 fails becaulse 'options' is null
    if(options.extras && typeof options.extras !== "object"){
  • It is seemingly called by the statement window.launchnavigator.navigate(address, null, success, error); where the "null" seems to be problematic.
  • On https://www.npmjs.com/package/uk.co.workingedge.phonegap.plugin.launchnavigator#usage-examples I saw that maybe the call should have a different format:
    -- either: launchnavigator.navigate(destination, options);
    -- or: launchnavigator.navigate(destination, successCallback, errorCallback, options);

plugins/uk.co.workingedge.phonegap.plugin.launchnavigator/www/android/launchnavigator.js:161 Uncaught TypeError: Cannot read property 'extras' of null
at Object.ln.navigate (plugins/uk.co.workingedge.phonegap.plugin.launchnavigator/www/android/launchnavigator.js:161)
at Object._onClickAction (infrapoi-accp.mendixcloud.com/widgets/widgets.js?636802069067647680:18157)
at Object. (infrapoi-accp.mendixcloud.com/widgets/widgets.js?636802069067647680:18258)
at Object. (infrapoi-accp.mendixcloud.com/mxclientsystem/mxui/mxui.js?636802069067647680:5)
at HTMLButtonElement. (infrapoi-accp.mendixcloud.com/mxclientsystem/mxui/mxui.js?636802069067647680:5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions