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?
Asked
Active
Viewed 43 times
1

Rodin10
- 327
- 3
- 15
1 Answers
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>