Issue with .mobileconfig File Downloads on Firefox for iOS
Hello, everyone!
I'm encountering a perplexing problem with downloading .mobileconfig WiFi profile files through a direct link in my ReactJS web application. This functionality works flawlessly on Google Chrome, Safari, and Edge across iPhone and iPad devices. However, when attempting the same on Firefox for iOS, the downloaded file becomes corrupted and unrecognizable as a .mobileconfig file.
The download mechanism is implemented using a simple anchor tag that points directly to the file on the server. Interestingly, only in Firefox on iOS, the content of the .mobileconfig file gets altered during the download process, leading to corruption.
I'm keen to understand why this issue is occurring specifically with Firefox on iOS and how to resolve it. Has anyone else faced a similar challenge or have any insights on how to ensure the file downloads correctly on all browsers, including Firefox on iOS? Any advice or suggestions would be greatly appreciated!
Thank you in advance for your help!
ప్రత్యుత్తరాలన్నీ (1)
Hi there, I'm sorry to hear you're having issues with Firefox for iOS. This does seem to be a rather peculiar issue.
Have you tried using the anchor (HTML <a></a> tag) in a plain site without any JavaScript? There may be some scripts detecting the use of Firefox for iOS and treating it differently.
If the above doesn't work, you can try making a CDN. The anchor tag can instead point to a page which downloads the file, instead of downloading the file directly. This may also rule out some other form of external interference.
Let me know if any of this works (or doesn't)!