mahega
mahega

Reputation: 3341

iOS app deep linking: Return to previous app or access current url scheme of current app

I'm developing a custom keyboard for iOS. When I'm e.g. in Safari using my custom keyboard, I have a button in my keyboard to jump to to keyboard containing app. Then in my keyboard app I have the iOS specific "<- Safari" button in the top left corner to jump back to Safari.

Is it possible to programmatically jump back to the source application (in my example Safari)?

Or can I send the original url scheme to my containing app and then open the previous app (could be ANY) by the url scheme?

It must be somehow possible, because the app Scandit Wedge does exactly what I want. I created an empty test app without any url scheme and with the Scandit Wedge keyboard I can go to Scandit app, read barcode and it goes automatically back to the source app.

Here's a video I recorded: https://www.youtube.com/watch?v=UiHH4NanlkA

Upvotes: 5

Views: 2788

Answers (1)

Rocky
Rocky

Reputation: 3235

To achieve this you have to implement inter-app two way communication using x-callback-url. x-callback is just a "protocol" to format the NSURL to ease the data processing at the receiver end and also allowed the source app to receive the correct callback function. You can explore more this with evernote and this tutorial.

Upvotes: 0

Related Questions