The APIs that I use not working on the actual device.

I'm building a custom keyboard using a keyboard extension.

I have a task that calls the API 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 the 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.

The APIs that I use not working on the actual device.
 
 
Q