I have a view (A) with some Text, Image and Google Maps inside. In this view has a Button "Go direction" to open Google Maps app by url_launcher (I'm using this one url_launcher
The problem is when the user goes back from the Google Maps app, view A does not work properly anymore, Click on Back button from Top navigation bar the Maps and Images in A's view are disappear, just text content is still there.
User cannot go back to the previous view
This happens in iOS only, Android works well.
And it happens only if view A has the Maps inside
Related
I'm new to iOS. And I'm trying to get popup menu as I did on Android:
This menu should disappear when the user clicks on another area of the screen.
I found the same menu in the YouTube app for iOS, but I didn't find a simple solution for that. I tried using popup window with "Present Modally" segue, but it behaves differently.
You can use cocoapods to quickly add a dropdown menu. Can read more: https://github.com/AssistoLab/DropDown
In iOS 13 Safari, when you long press on a link, you see a preview of the linked page, along with some menu items. If you tap the preview, you navigate to that page.
Now, I see how to intervene in the long-press-and-preview process. This used to be peek-and-pop, but in iOS 13 that's deprecated and we're supposed to use func webView(_:contextMenuConfigurationForElement:) and so forth. Fine, but how would I imitate what Safari does?
The problem is that as my preview provider I have to supply a view controller. So I'm going to need a different view controller with a web view showing the linked page. Okay, I can do that. But then when the user taps the preview to dismiss it, I want to respond by loading the same linked page into my real web view.
But that's the problem. That loading takes time. In Safari, by contrast, when you tap the preview, boom, there's the same page already loaded. How do they do that? How would I do the same thing? How can I load the page into a different view controller, cache it, and communicate that cached page back to my real web view?
In iOS 9, we have Back-to-appB button in application A when the application A is opened from application B. You can see Back-to-app button (Back to Safari, Back to App Store) in below picture:
Example pictures
But on iOS 10, we haven't seen Back-to-app button in status bar.
So could you please tell me how to enable this button on iOS 10 and how to use it in coding.
I'm using Objective-C language.
Updated:
I saw Back-to-App button on status bar, but I want to know how to call action of Back-to-App button without touching. We want to use this function to replace OpenURL method. With this way, we can open Safari browser without reloading page.
This feature is also work in iOS10, if your destination application open from source application then this option will visible in status bar.
For Example, your demo app contain url schema like "demo",
and you open you demo app through safari like "demo://" then you can see the "< Safari" button in your demo app status bar.
Deep linking of application A works if the user moves to application B by tapping on link or button from application A.
On the contrary it will not work if you press home button and move to another application.
I have implemented search bar in my table view to search for files using objective-C. And it is working fine.
I want to implement it in a way that when the search bar is clicked, the screen fades out & only the keyboard & the search bar has user interaction (like in default phone app or whatsapp or any other ios app).
Can anyone suggest me how that can be done ? Any help would be appreciated.
Problem 1: So I am using the Firebase dynamiclink and works fine. My problem is I want to hide the textButton on my status bar (DONOT WANT TO HIDE THE WHOLE STATUS BAR, the buttons) whenever the app opens on dynamic links. See photo.
Problem 2: I accidentally tapped the goo.gl above and now the app is not opening on the dynamic link. It goes to safari instead. how to bring it back to normal?
Problem 1: I do not believe this is possible. It would be great if so, but as far as I know it is enforced by iOS.
Problem 2: paste the URL into the Notes app, long-press on it, and select Open in [App]