I started my applicaiton, its open an url in safari. On my website the user can login and do some work. After the user did it the website redirect to the universal link. At first it is working fine, but if the user start again my application, open my website from it (the safari already show my website), login again and redirect to the universal link, show the universal link, and on the top I see a bar where i can open my application.
If the user didn't login to my website, just clicked on the button to redirect to my universal link the ios9 open my application.
Have you got any idea, what's wrong? Maybe the iOS 9 doesn't like the autoredirect to universal link?
Universal links does not work with redirections.
check https://stackoverflow.com/a/32751734/127493
I just been on a similar issue where I clicked the link on the top right side of the screen, disabling the automatic opening in my app.
since you see the banner, the user has to scroll a bit (to show the banner "open" ) and all redirections will occcur on your app again (and not safari)
Related
I'm integrating firebase in application. I created universal link that worked for Android & iOS both.
This worked great. BUT I got scenario where I clicked on goo.gl (PFA) link which was displaying on launched app right-top side. And from then no matter what I do, Deeplink will never launch my application.
I checked to clear history of device-browser but it's same. Any suggestion how to get rid of this issue/feature ??
You're absolutely right: the forward button is horrible UI/UX. It's one of the big flaws with Universal Links identified in this blog post. There is no way to disable the forward button, and once it's triggered, you're screwed.
The easiest way to re-enable Universal Linking behavior after it is turned off is to long-press on the link. Your best bet at getting a clean shot is to paste the Universal Link URL into the stock Notes app and try long-pressing it from there.
Long hold on the url and there will be option to open in app.
Usually when you click the "forward" link to open the universal link in Safari, you can re-open the app by dragging the page down. A bar will appear with your app name and an "OPEN" button. This works as long as you're still in the same URL.
Unfortunately, for Firebase Dynamic Links specifically, the link will redirect you to another domain (for example, from https://z99zz.app.goo.gl/zzzz to https://z99zz-c.app.goo.gl/zzzz) and this breaks this feature. The solution is to either add ?d=1 to the original link (https://z99zz.app.goo.gl/zzzz?d=1, opens a link debug page), or just remove everything after the domain (https://z99zz.app.goo.gl/, opens an error page). Now when it opens in Safari, you can drag down and see the bar.
In addition to imgx64 post. I had a similar problem: Firebase redirected to z99zz-c.app.goo.gl/zzzz and in this case system was not redirected to my app. I added "applinks:mzn3g-c.app.goo.gl" as Associated domain in my target capabilities and this does the trick! Even if you redirected to domain with "-c" suffix iOS can recognize it and will redirect to your app and show suggestion in Safari
In my iOS app, I am opening a URL in a UIWebView. On the webpage, there is an option to login through social media like Facebook, Google, Twitter etc.
But when I click on the login through say Facebook option, I see a blank screen. What happens is that, it opens a pop-up in the same UIWebView instance. But I am not sure why I see a blank screen.
The URL works well if I use Safari on my device.
Can you please guide what options on UIWebView shall I enable that the pop-ups work. Also I feel that the pop-up(for FB Login) will throw a callback on the initial page. So please help me how should I handle the call back.
Thanks!
The situation is like this:
User opens app from a website using a custom urlscheme
User does stuff in the app
User clicks button in the app to return to the website in Safari.
I have tried opening a new tab containing a javascript:window.close() but this does not work on iOS 6.1.
So my question is: Is there a way to open Safari to view the website the user left from? Either with a working new tab that closes itself or a different route?
When you open the app with your custom url scheme, pass the actual page url as an argument.
mycustomUrlScheme://mydomain.com?objectid=1234&callback_url=encoded_url
In your app, handle the url for the content info and keep the page url to open it afterwards. It will make safari open a new tab. But that should be a good start.
As far as i understand you can do it.
user opens mobile safari for example http://www.example.com
user clicks a link that is appscheme://open and the application become active
user taps a button to open safari for example http://www.example.com?q=test
for the third step you can use [[UIApplication sharedApplication]openURL:url]
I'm not a heavy coder here, so i'll ask my best.
We made a brochure about our home town. However users spreading it trough facebook cant open the links when in their facebook app. The app does not send it to safari either. If opened directly from safari it is no problem.
The link is http://visit.lodingen360.com
Is there anything i can do to the site/index.html/whatever that will make it open in safari when the link is clicked in the facebook app for ios? (that won't affect visiting the site from pc's and so on)
Is there anything uiwebview won't read that can force it to safari, so that we can redirect from the thing opened in safari to the site?
Your page will load and display in Mobile Safari, I tried with UIWebView and it will load without displaying an error, but the brouchure page content won't display.
Safari and UIWebView have different user agent's - therefore my guess is that because your site uses flash but it checking for the type of browser you are not performing the check correctly for UIWebView and the page is attempting to use flash which isn't supported.
I'm building a phonegap app with facebook authentication (https://github.com/davejohnson/phonegap-plugin-facebook-connect). I already have it working on android, but on iOS, I'm having this issue:
When I click 'login' (on the example index.html provided by the plugin), it opens a browser window and goes to facebook's mobile login page, instead of opening the facebook login dialog in a popup.
However, when I click 'wall post', it does open the expected popup (although it also seems buggy, login does not seem to work).
What can I do to make sure the popup opens for the login dialog, and not the browser?
Cheers,
Hoff
This is now the default behaviour for FBConnect when the device supports multi-tasking but does not have the FB app installed. The popup is only used on devices that do not support multi-tasking.
If you really want the popup you will have to go in to the FBConnect code and change it so that it always uses FBDialog.
The behaviour is documented here https://developers.facebook.com/docs/mobile/ios/build/#implementsso