I'm building a custom keyboard using a keyboard extension.
I have a task that calls the API(from openAI) from the keyboard, which works very well on the simulator.
However, when I test it by connecting it to a real device or downloading it from the app store, the API doesn't work at all.
In info.plist, I set "App Transport Security Settings" > "Allow Arbitrary Loads" > "Yes", but it doesn't work on the device at all.
There's nothing wrong with my network.