@d4h wrote:
We’re currently preparing an Ionic 4 application for iOS and Android release. Across both platforms I’ve observed this behaviour:
- We use a custom component to fetch and display (basically
figure > img
) because our image API is programmatic. This component just calls a service to fetch the image and turn the blob into a URL.- Before the user shuts down the app, this works totally fine. It displays correctly.
- After the user restarts the application, and older version of this component displays with a placeholder graphic.
- All instances of this component use the same placeholder graphic.
At this point in time I have removed both the placeholder graphic and all references to it from our code. It appears that after the user restarts the application it shows the older component.
In the screenshot above, a broken “image not found” graphic should show, not the placeholder. Steps to build application:
rm -rf www
ionic cordova platform rm ios && ionic cordova platform add ios
ionic cordova prepare ios
(in this case)- Build in xcode.
It’s always the same pattern. New component before build, old component after. What the heck?
Posts: 1
Participants: 1