I have been trying to troubleshoot this page for what feels like eons. theafropick.co.uk is the site. Everything seems to work fine on all devices except on ipads and iphones the section with 6 tiles is completely gone.
It looks like it's just Safari that is having the issue. Here's a thread that shows other people having the issue:
Background image not showing in Safari
That thread has many different solutions, and I tried many within the inline safari dev tools without any luck. If they don't work for you either I would try using jpg instead of png.
Related
I finally have my site working the way I want it except for a bug that seems to only be with ios devices. I set the css on images on this particular page to be object-fit: contain. The picture should be displayed like this:
on Android and PC
But whenever I open the website on an iphone or an ipad I get this:
IOS
This is affecting the sites animations and really just looks very choppy because of it on iphones. I'm not sure how it could be working so well on android devices and just generally but still persist like this on IOS..I tried different browsers as well no use.
What's even more interesting is that on initial load you will see the incorrect css applied on the image, but after refreshing the page it loads the image with the correct dimensions. I'll appreciate any insight I can get regarding this issue.
Feel free to check out the repository: https://github.com/physicalrobot/vikalpaWebsite
And see the bug for yourself on an iphone or ipad at www.vikalpa.xyz/projects
I tried changing the css of the images to force them all to have a width: 100% and a height: auto.
I tried changing object-fit to anything else in the browser while using web-inspector on the ipad, but still couldn't get it to change.
I've uploaded my app to AppStoreConnect and was working on getting all the data pulled together. Noticing the screenshot page, I took several screenshots of my app via the button on a iPhone 13 simulator. I tried to drag and drop the screenshots, like it should work, into the area. BUT I got this strange error:
I have tried different simulators and screenshots, but none of them seem to work. I've additionally tried to add screenshots for other screen inch sizes, but was unable. It seems quite unreasonable that the px dimensions should be 1242x2688 for a screenshot... considering that is about the size of my laptop's monitor.
Anybody know a way around this? It seems like (another) glitch... But I'm not sure. It would seem like taking a screenshot on the Apple simulator would work with the Apple website, but whatever.
Thanks in advance!
I use -webkit-mask-image in my meteor app, like this:
...
background-color: purple;
-webkit-mask-image: url('images/user_plum.png');
...
It works fine in all browsers. It works fine in the cordova version on Android. It was working fine in iOS Cordova. Now, only in iOS, all of my icons that use this technique are invisible, even though they are still clickable and functioning.
The problem was found on two users' iPhones and I reproduced it in iOS Simulator. My iPhone worked fine. Uninstall/reinstall of the app, rebuild/restart of the server, etc., nothing changed. Until I updated my phone to iOS 11.4, and now my phone has the issue, too. If I remove that -webkit-mask-image line from the CSS, I universally get the proper background-color'ed square where the icon should be. That and other simulator testing makes it clear the invisible icons are only happening on iOS devices and simulator, and only if -webkit-mask-image is in use. Is anyone aware of any changes in iOS between 11.1 and 11.4 that would break Cordova webview's handling of -webkit-mask-image?
Okay, this problem is very real, I've done a bunch of tests, installed different flavors of inappbrowser, etc., all to no avail. But here's a workaround (thanks to #JamesMontagne for the answer and jsfiddle at Is there any way to colorize a white PNG image with CSS only? that led me to try it out):
Just use -webkit-mask-box-image instead of -webkit-mask-image.
background-color: purple;
-webkit-mask-box-image: url('images/user_plum.png');
This continues to work on all the platforms it already worked on, but also works in this iOS 11.x Cordova environment in which it -webkit-mask-image had broken.
To be clear, -webkit-mask-box-image carries the "non-standard" warning in the mozilla docs: https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-mask-box-image.
But it works when -webkit-mask-image doesn't, so I'm going with it for now.
Also, fyi, user_plum.png is a transparent png with a plum-colored icon image. It doesn't matter what the color of the non-transparent part is, there's no color math being done in this masking. The icon doesn't have to be white to work (many web pages of css masking topics include discussions of white or black masks).
I solved it in iOS coding both lines for everyicon:
-webkit-mask-image: url(../assets/img/icons/_ionicons_svg_md-list-box.svg);
mask-image: url(../assets/img/icons/_ionicons_svg_md-list-box.svg);
to the CSS icon... and for some strange reason got to be in THAT ORDER (webkit first, and mask second!)
I was required to display my website in a full page iframe, which was already a pain in the ass (I'm ranting sorry).
In the I have a select input and it seems that after I make a selection the screen freezes when the screen is vertical but if I put it in landscape mode it works like a charm.
Also the same thing happens when I go from landscape to vertical mode and again all comes back to normal back in landscape mode.
I though it could be due to some of my scripts but I remove everything and I still got the issue.
And I forgot to mention it, but there was no issue at all before installing ios 7.
I'm at it for a while so any suggestion would be really appreciated.
I tried reducing the code to the minimum cleaning out the unecessary stuff and putting everything together in a single file instead of using partial pages. Since then it seems to work so I'm gonna leave like that it's been long enough.
Still not sure what was the issue even though it worked on IOS 6 and without the iframe or in landscape mode on IOS 7. Anyway I'm done with it
This is my first time posting a questions here. So far I have been able to find the solution to all issues I have had. For 2 weeks now I'm struggling with a strange issue.
Issue Description:
I'm developing an universal application for iOS 5+. I'm having an issue with one image, which is not displayed everywhere. This is my background image and it displays correctly on all iPhones (3GS, 4, 4S, 5) and iPad retina. Unfortunately there are 3 screens on which it doesn't displays. This happens only on iPad without Retina display. The images appears on the other screens and I can't determine what is different so it doesn't display on these 3 screens.
What have I tested:
I have tried to delete the image and add it again - nothing changes.
I have double checked the naming of the file - everything is fine.
I have tried to load the image in another view controller and it loads.
I have cleaned my application and deleted it from all devices - issue stays.
If you happen to have any suggestions on what can be the cause of that strange behavior please give me a hint.
OK, since your image is already in the project and the target, here's a couple of other reasons which could cause the issue
The file extension and the type of file don't match. Try saving the in another format and use it in the app. See if that works
You mentioned this is a universal app? Are you naming the images correctly (image.png, image#2x.png, image~ipad.png and image#2x~ipad.png