I created a Web Scene portal item and add a feature layer. I also enable the layer's popups property as below picture.
The popup is not working in below javascript API code. How can I do for let the popup working as protal server Webscene view?

<script src="https://js.arcgis.com/4.16/"></script>
<script>
require(["esri/views/SceneView", "esri/WebScene","esri/config"], function (
SceneView, WebScene, esriConfig) {
var titleDiv = document.getElementById("titleDiv");
esriConfig.portalUrl="https://cit183x.xxx.edu.tw/portal";
var scene = new WebScene({
portalItem: { id: "540xxx6d5fd432fa4ba3dd64eca801d" }
});
var view = new SceneView({
map: scene,
container: "viewDiv"
});
});
</script>
I'm having the same problem. Is it possible for a WebScene based on a portalItem to show popups? They're definitely enabled on the feature layers, and I can get them to pop up when I open the WebScene in Scene Viewer online.
maybe a bit late. I had the same issue but fixed by set the following to sceneView object