Sujet sur Discussion Gestion:Tâches/Liste/245/1

Je confirme le support JS/HTML pour Android.

CommunicationsBridge.java

/**
 * Two-way communications bridge between JS in a WebView and Java.
 *
 * Messages TO the WebView are sent by calling loadUrl() with the Javascript payload in it.
 *
 * Messages FROM the WebView are received by leveraging @JavascriptInterface methods.
 *
 */

...

@SuppressLint({"AddJavascriptInterface", "SetJavaScriptEnabled"})
public CommunicationBridge(CommunicationBridgeListener communicationBridgeListener) {
    this.communicationBridgeListener = communicationBridgeListener;
    this.communicationBridgeListener.getWebView().getSettings().setJavaScriptEnabled(true);
    this.communicationBridgeListener.getWebView().getSettings().setAllowUniversalAccessFromFileURLs(true);
    this.communicationBridgeListener.getWebView().getSettings().setMediaPlaybackRequiresUserGesture(false);
    this.communicationBridgeListener.getWebView().setWebChromeClient(new CommunicatingChrome());
    this.communicationBridgeListener.getWebView().addJavascriptInterface(new PcsClientJavascriptInterface(), "pcsClient");
    eventListeners = new HashMap<>();
}

Pour ce qui est de d'iOS, je vais essayer de rechercher explicitement le support javascript aussi, car en raison de l'hétérogénité des deux codebases, ce n'est pas nécessairement garantit.