1

I'm trying to make a connection to a test environment over HTTP. This requires NSAllowsArbitraryLoads to be set as subkey of dictionary NSAppTransportSecurity according to This thread. How would I go about doing this in Codename One?

Rodin10
  • 327
  • 3
  • 15

1 Answers1

1

Fixed it by adding the following build hint as stated here

 ios.plistInject=
<key>NSAppTransportSecurity</key>
    <dict><key>NSAllowsArbitraryLoads</key><true/></dict> 
<key>CFBundleURLTypes</key>
    <array><dict><key>CFBundleURLName</key> 
      <string>com.mycompany.myapp</string></dict><dict> 
<key>CFBundleURLSchemes</key>
   <array><string>MyApp</string></array></dict></array> 
Dimple
  • 788
  • 1
  • 11
  • 27
Rodin10
  • 327
  • 3
  • 15