I have 2 iOS
applications, using URL Scheme
I am able to open app B
through A
like I have created URL Scheme
in B
and using OpenURL
calling it from application B
. Also, I am able to pass the data.
But what I am looking for, is there a way to move back to application A
on some specific event.
In B
I am getting all details about A
in sourceApplication
but how to move back?
Do we need to create URL Scheme
for both of the apps for communicating with each other? or is there any way to invoke sourceApplication
and move back?
Issue 1
in case of Facebook SDK,
I create URL Scheme
for my app because once authentication is done I want Facebook SDK
to call my app that right but I didn't register my app scheme
in Facebook SDK
info.plist. how does it work?
Issue 2
I have tried on Simulator and device both. if I call canOpenURL
it gives me an error
-canOpenURL: failed for URL: "openb://" - error: "This app is not allowed to query for scheme openb"
But If I directly call UIApplication.shared.open
it launches the application successfully.
Any leads here?
URL Scheme
for both apps for communicating each other? – DipikaURL Scheme
for bothA
andB
. but when I am invokingB
fromA
can we move back we have all details aboutsourceApplication
?Facebook iOS SDK
does the same then how they are achieving it? any idea? – Dipika