I have a keyboard extension app that uses a container app to process keyboard inputs (reading data from somewhere to be inserted into page where keyboard is active). I am able to open my container app and process the required data. But I am unable to find a way on iOS 17+ to close the container app and return to app that launched my container app from keyboard extension.
Following solution works on iOS 16 and below:
How does Google’s custom iOS keyboard, Gboard, programmatically dismiss the frontmost app?
For iOS 17+, I am able to store bundleId of app that launched the container app but when using LSApplicationWorkspace solution mentioned in above link as a solution Apple is rejecting my App. I see that there are apps in AppStore (ScanKey) that have similar solutions working on iOS 17+. Trying to figure out how they got their app approved.




