Is it possible to launch my APP after the selected text is copied on iOS or macOS system?

Viewed 145

Like “Tap to Translate” of Google's Translate on Android, once you copy the selected text, the translate button will pop up. Click the button then Google's APP will show.

The feature seems happen only on Android system, but I don't know whether iOS or macOS can do so or not. So is it possible to launch my APP after the selected text is copied on iOS or macOS system?

2 Answers

For iOS

Short Answer : NO
Because this type of features does not provided by Apple as like Android. So best way to stop fight with it to find.

For OS X : Really I don't know about it.

There is no in build solution for it. But you can build your own system.

Customise the menu options and add one extra menu i.e. translate and the translate it using your own logic or also can use some 3rd party API for translate if available.

For customise menu : https://developer.apple.com/library/content/documentation/StringsTextFonts/Conceptual/TextAndWebiPhoneOS/AddingCustomEditMenuItems/AddingCustomEditMenuItems.html

Google translate API : https://cloud.google.com/translate/docs/translating-text

Updating according to comments

You can use share extension. Hope apple will give access for menu extension in future :)

Related