Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/104.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 在Info.plist上添加任意加载后,NativeScript上的Http请求不起作用_Ios_Http_Angular_Typescript_Nativescript - Fatal编程技术网

Ios 在Info.plist上添加任意加载后,NativeScript上的Http请求不起作用

Ios 在Info.plist上添加任意加载后,NativeScript上的Http请求不起作用,ios,http,angular,typescript,nativescript,Ios,Http,Angular,Typescript,Nativescript,我从NativeScript开始,实际上我正在做快速入门 我读到一个类似的问题,需要从Info.plist启用http请求,这是文件的内容: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0

我从NativeScript开始,实际上我正在做快速入门

我读到一个类似的问题,需要从Info.plist启用http请求,这是文件的内容:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>CFBundleDevelopmentRegion</key>
    <string>en</string>
    <key>CFBundleDisplayName</key>
    <string>Groceries</string>
    <key>CFBundleExecutable</key>
    <string>${EXECUTABLE_NAME}</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>${PRODUCT_NAME}</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleShortVersionString</key>
    <string>1.0</string>
    <key>CFBundleSignature</key>
    <string>????</string>
    <key>CFBundleVersion</key>
    <string>1.0</string>
    <key>LSRequiresIPhoneOS</key>
    <true/>
    <key>UILaunchStoryboardName</key>
    <string>LaunchScreen</string>
    <key>UIRequiresFullScreen</key>
    <true/>
    <key>UIRequiredDeviceCapabilities</key>
    <array>
        <string>armv7</string>
    </array>
    <key>UISupportedInterfaceOrientations</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
        <string>UIInterfaceOrientationLandscapeLeft</string>
        <string>UIInterfaceOrientationLandscapeRight</string>
    </array>
    <key>UISupportedInterfaceOrientations~ipad</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
        <string>UIInterfaceOrientationPortraitUpsideDown</string>
        <string>UIInterfaceOrientationLandscapeLeft</string>
        <string>UIInterfaceOrientationLandscapeRight</string>
    </array>
    <key>UIViewControllerBasedStatusBarAppearance</key>
    <false/>
    <key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
        <key>NSExceptionDomains</key>
        <dict>
            <key>api.everlive.com</key>
            <string></string>
        </dict>
    </dict>
</dict>
</plist>
据推测,该应用程序应该与Info.plist上添加的行一起工作,任何关于我做错了什么的想法

看起来iOS不支持这种连接,只支持Android 是否:

  • ${variable}/一些数据
在http请求中,必须以
classic
的方式执行:

  • 变量+'/some data'
看起来iOS不支持这种连接,只支持Android 是否:

  • ${variable}/一些数据
在http请求中,必须以
classic
的方式执行:

  • 变量+'/some data'
CONSOLE LOG file:///app/shared/user/user.service.ts:50:20: {"line":40,"column":37,"sourceURL":"file:///app/tns_modules/http/http-request.js"}