I'm using IONIC 4 with angular 6 to build an hybrid app with cesium, in Android all smooth when it gets to IOS i always get the following error when entering the viewer.
I can’t think of anything off the top of my head why it would work on Android but not on iOS.
Is your code just initializing the viewer and not adding anything else? Does it work fine on desktop/in Safari?
I would try using the unminified version of CesiumJS so that when you get the stack trace it’ll be easier to see which line(s) are throwing the error. Let me know if you can get that.
*Is your code just initializing the viewer and not adding anything else?
Yes only the viewer through an angular directive.
*Does it work fine on desktop/in Safari?
Yes it works fine in every desktop browser.
(I would try using the unminified version of CesiumJS so that when you get the stack trace it'll be easier to see which line(s) are throwing the error.) - I'm on it
Thanks for trying that. You’re using version 1.49 of CesiumJS right?
It looks like _dataSourceDisplay never gets initialized. Can you try to debug this a little further? In Cesium.js, around line 255725 is when it creates this initial DataSourceDisplay. Is the value of that undefined at that point?
Does ionic do any sort of transpiling/translating of the code? Is the code in script.js different from the original Cesium.js?