mendix / NavigateWidgetForPhoneGap

Navigate to an address in Phonegap
https://appstore.home.mendix.com/link/app/7624/Mendix/Navigate-Widget-For-PhoneGap
0 stars 1 forks source link

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

Open axelbrink opened 5 years ago

axelbrink commented 5 years ago

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:

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)

axelbrink commented 5 years ago

Found it. Mendix's Phonegap-zip now includes the following line: <plugin name="@mendix/uk.co.workingedge.phonegap.plugin.launchnavigator" source="npm" spec="4.2.2-mx.1.0.0" /> This does not work with the widget. It should be replaced by the version that is mentioned in the widget documentation. Suggestions:

  1. Update the documentation on this issue
  2. Update the widget so it supports the newer plugin version.