0

I'm working with a client who's considering migrating their existing MobileFirst Platform 7.1 hybrid app to the Cordova app type.

They are trying to understand if this app type would still give them access to MobileFirst APIs such as WL.App.sendActionToNative to easily bridge the native and JS layers. The list of supported and unsupported features doesn't mention those APIs; are they supported in Cordova-type apps?

Andrew Ferrier
  • 16,664
  • 13
  • 47
  • 76

1 Answers1

0

Well...

In a Hybrid app one of the benefits of Worklight was that "we" own the native and web portion. You could create a Cordova plug-in (based on the tutorials) if you wanted, but with SendActionToNative - because we own both sides - helped here by "bridging" the two ends, "negating" the need for a Cordova plug-in. This feature is a "Cordova plug-in" in itself(!) internally.

In a "pure" Cordova apps we don't own both ends. Only the web end... The MFP SDK is now a Cordova plug-in.

Anyway, yes, you could enter the platform folder where the native code is and use those APIs and it should work, but in a Cordova world that does not make much sense - you're not supposed to touch any native code... you're supposed to use Cordova plug-ins in order to interactive with the native later...

Idan Adar
  • 44,156
  • 13
  • 50
  • 89