【发布时间】:2013-11-17 23:20:56
【问题描述】:
在我们的应用中,我们引导用户下载 .mobileconfig。最初的问题是 Safari 只显示 XML 而不是下载它,但我们使用 PHP 脚本(如下)解决了这个问题。
<?php
$file = "http://example.com/myProfile.mobileconfig";
header("Content-Description: File Transfer");
header("Content-Disposition: attachment; filename=\"$file\"");
readfile ($file);
?>
但是,我们通常会在下载 .mobileconfig 的位置看到它并自动显示“您希望安装页面”。那是怎么做的?我们是否在 Content-Type 中遗漏了什么?
谢谢,
山姆
【问题讨论】:
标签: php configuration mobile-safari profile provisioning