Open axelbrink opened 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:
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:
if(options.extras && typeof options.extras !== "object"){
window.launchnavigator.navigate(address, null, success, error);
where the "null" seems to be problematic.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)