Using cordova Widgets in Mendix

1
Hi ALL, how can we use Cordova plugins in Mendix? Note that I am not talking about widgets available in Mendix app store. Thanks, Prachi
asked
3 answers
6

Here's a widget package I'm working on that uses a number of the Cordova plugins to achieve native features in a Mendix app:

GitHub Link

Direct Link to Widget

The widget package contains the following:

  • MobileActionMenu – show a native pop-up with list of options, backed by microflows
  • MobileTransitions – native page transitions
  • MobileStatusBar – adjust the color of the mobile status bar per page/layout
  • MobileHideSplash – optionally keep the app splash screen up until a Mendix page actually loads (hides away loading screens)
  • MobileDialog – overrides Mendix info, warning, error, and confirmation prompts with native ones
  • MobileSpinner – overrides Mendix loading dialogs in favor of their native equivalent

While the documentation is still severely lacking, the widgets and source code should give you an idea about how you call/use Cordova plugins within a Mendix app.

answered
3

Short answer: Yes
Long answer: Yes, you can

answered
0

See the push notification widget:

https://github.com/mendix/MxPushNotifications

For an example of how you can use a cordova plugin widget with data from Mendix.

The documentation also gives you a good idea how you can include these plugins into your Mendix phonegap buiild:

https://world.mendix.com/display/public/howto6/Push+Notifications;jsessionid=F7957E22B0E30464FA5324E96FD02D76

answered