Open .mobileconfig file saved in application in safari ios

后端 未结 4 2010
北恋
北恋 2020-12-15 00:29

I\'m trying to open a mobile configuration file (mobileconfig) in safari to install it but nothing work. I use URL Scheme:

NSURL *finalURL = [NSURL URLWithS         


        
4条回答
  •  误落风尘
    2020-12-15 01:27

    I think you can use data URI to encode and launch mobileconfig. (I don't have IOS device here, so I cannot test right now_

    You can use http://dopiaza.org/tools/datauri/index.php to encode your profile (don't forget to add mime type: application/x-apple-aspen-config)

    Then you can open:

    [[UIApplication sharedApplication] openURL:dataURLGenerated];
    

提交回复
热议问题