MATLAB Web Apps are not supported on this device (Phone)

15 次查看(过去 30 天)
Good night everybody,
I am currently trying to develop a MATLAB Web App on MATLAB Web Server R2020b. This application works fine on Desktop, however if I try to access it on any phone an error "MATLAB Web Apps are not supported on this device" appears. I have accessed the link (https://es.mathworks.com/help/compiler/webapps/supported-browsers-and-platform-incompatibilities.html#:~:text=Web%20apps%20are%20compatible%20with,Chrome%E2%84%A2%20browser%20on%20Chromebooks.) of the error and there is nothing about incompatibility with phones. Are phones and maybe some other devices unhandled by Web Apps or this is some unrelated error which I can't manage to find? As an example, if I try to access with Chrome or Firefox on a Pixel 2 the error of the image appears, however if I turn on "View in desktop mode" it works correctly and I can see my app.
Thank you all,
Marcos

回答(1 个)

Cris LaPierre
Cris LaPierre 2021-3-21
Perhaps this page?
MATLAB Online, Simulink Online, and Self-Paced Training are currently not supported on smartphones or tablets. Use MATLAB Mobile to access MATLAB on your iPhone, iPad, or Android device.
  6 个评论
Eric Delgado
Eric Delgado 2024-8-29
编辑:Eric Delgado 2024-8-29
Hi @Cris LaPierre. Using the direct URL created by the WebServer with an unsecured connection (HTTP), I can access the webapps regardless of the device (Windows, Android, macOS, iPadOS) or the browser (Chrome, Edge, Safari).
When I configure the F5, publishing the URL in a secure environment (HTTPS), I can't access the webapps on the iPad (Safari and Chrome) and on the MacBook (Safari only), but I can on the others: Windows, Android, or macOS (Chrome only).
It seems that Chrome uses Safari's WebKit on the iPad, so I would say the problem lies with Safari when trying to access the WebServer over a secure connection (HTTPS).
Note that we are not using the method suggested by MathWorks, which involves configuring the SSL certificate directly on the WebServer, but rather configuring the F5 (company policy). However, Safari does not indicate any issue with the SSL certificate.
When trying to access the URL that routes through the F5, at the beginning of the session, the client's browser sends a simple request addressed to the URL https://servername/webpages/commands. The server responds with general settings.
It's something like this...
% REQUEST
{"command": "serverinfo","sessionId":"","appName":"","data":"","userId":""}
% ANSWER
{
"stringData": "{\"userId\":\"ec4f7305-00d6-4bf5-86a4-8dbdeb55e68a\",\"serverVer\":\"24.1\",\"serverArch\":\"win64\",\"instanceName\":\"\",\"webSockets\":\"1\",\"runtimes\":[{\"release\":\"R2024a\",\"runtimeVer\":\"24.1\"}],\"auth\":\"0\",\"launcherConnected\":\"1\",\"authServerStarted\":\"0\",\"prewarmingComplete\":\"1\",\"fileUploadSize\":\"100\",\"allowedEventOrigins\":[]}"
}
This happens very early in the process... Safari, when in a secure environment (HTTPS), is not receiving a response to this request, which then immediately displays an alert screen.
Cris LaPierre
Cris LaPierre 2024-8-29
I would suggest contacting support. They will be in the best position to investigate this further.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 MATLAB Mobile 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by