Open .mobileconfig file saved in application in safari ios

后端 未结 4 2002
北恋
北恋 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:07

    The mobile config file is inside your app's sandbox. Safari doesn't have access to it. The return value of [UIApplication openURL] only indicates if there was an application that understands that url scheme. It looks to me as if you're sending that url to yourself, assuming that you added myAppURLScheme as a uri handler to your info.plist file.

提交回复
热议问题