I have an Ionic Vue app which serves blind users.. (curently only on IOS)
they use Siri to launch the app when they need it..
they use it for specialized navigation using UWB
when they have completed the last navigation task, they want the app to auto close
I tried App.exitApp();
but get
To Native -> App exitApp 76019437
ERROR MESSAGE: {"code":"UNIMPLEMENTED","errorMessage":"not implemented","data":{},"message":"not implemented"}
what other choices do I have?
Apple don’t like developers to close the apps as they seem like a crash, there are some users using `exit(0)` to close the apps, but Apple explicitly tells to not do it
While I understand Apples view, user requirements should win.
The app is task oriented. Open, complete task, done
til next use which could be weeks
Where would I issue the exit()
This is a VUE app
Can I do it in the VUE side or do I need the call into a plugin?
(Asking opinion!)
Apple could reject the app if you use it, they don’t care about your requirements if they go against their guidelines.
You’ll need a plugin and call `exit(0)` from Swift code.
thanks.. didn’t work in VUE app..
On iOS you generally can’t programmatically “close” an app the way you’re trying to do with App.exitApp(), which is why you’re seeing the UNIMPLEMENTED error — Apple doesn’t allow apps to terminate themselves. The common approach is to let the app move to the background and provide clear audio feedback like “Navigation finished, you may close the app now,” which works well for blind users. In Ionic Vue, instead of exiting, you can navigate to a final screen, stop UWB services, clear listeners, and let the system handle the rest. This gives a clean end-of-session flow without violating iOS rules.
Thanks. They started the app with voiceover, and it goes straight to task with audio instructions. And voice input when needed.
but can’t close it that way. They asked for help