0

I've created 2 app. The first app can send value to the second app to process (URL Scheme). After success in the second app, it can open the first app and give a response using UIButton. but how to detect "back to app" is pressed so I can add action to give response to the first app?

Is there any delegate at "back to app" button? I want to show alert before "back to app" start switching app to previous app.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
victorz
  • 39
  • 1
  • 12
  • 1
    Dont think its possible, you can check this for more answer [SO question](http://stackoverflow.com/questions/35299044/sharing-file-data-between-applications-in-swift-ios) – Tj3n Aug 10 '16 at 04:23
  • Maybe you can use shared app groups http://stackoverflow.com/a/27730754/1489885 – HAS Aug 10 '16 at 05:53

1 Answers1

0

The thing you are asking for is not possible. Users, not apps, are supposed to be in control of which app is in the foreground.

Refer

Bring previous app back to the front when user is done with my iOS app

Community
  • 1
  • 1
gurmandeep
  • 1,227
  • 1
  • 14
  • 30
  • is there any way to hide "back to app" button ? – victorz Aug 10 '16 at 06:28
  • How does Google GBoard iOS keyboard do it then? When microphone is clicked it swithes to it's own Speech-to-text app and as soon as you finished dictation it comes back to the previous app just like back-to-app button. – Ahmet Akkök Apr 17 '17 at 08:31