Open Browser within an iphone app [using Phone-gap] - iphone

I am creating an iphone app using phonegap. However, there is a requirement wherein if the user clicks an external link, it should load the content within the app. Basically it should open a browser window with only a close button, so that you can go back to what you were doing within the app. Any Idea if jquery mobile has any plugin to do so ?
Thanks in advance !

PhoneGap has the InAppBrowser plugin.
You'll just have to attach a handler on your external links that calls preventDefault(), to prevent navigating away from your app, and calls window.open on the target URL.

Related

What happens when you click on a URL link and the link opens the app instead in flutter?

I have a link to a website but I want when the user clicks on the link, they are taken to the app instead of the browser.
You can achieve this using device_apps Flutter_device_apps (not supported for IOS).
firebase_dynamic_links package can help you in this regards.
With Dynamic Links, your users get the best available experience for the platform they open your link on. If a user opens a Dynamic Link on iOS or Android, they can be taken directly to the linked content in your native app. If a user opens the same Dynamic Link in a desktop browser, they can be taken to the equivalent content on your website.

how to redirect from web to app in flutter

hello I have a link in my app that opens the browser I want my app to open after a certain button pressed in the browser
I know a plugin named inAppWebView that can support this...I don't know how especially when it is opened in an external browser like Chrome
One way of opening apps from the web is with the use of app links. In Flutter, you can use Firebase Dynamic Links with the firebase_dynamic_links plugin. Other ways of doing so is with the use of app_links plugin.

Is there a way to open a dynamic link in a browser?

I have an ionic app where i can send invitations (share app link), I used firebase dynamic links. When I share it, the person who receive the message can open the link in a device (tested for android) and he is redirected to the play store ( app not found because i am still testing it), but if the link is opened on a pc, then browser opens with page not found.
I am new to all the stuff.
As the first point, the link that should be shared is your website domain name example.com/anypagename that couldn't be direct accessed.
Whwn user click this link from any place it will redirect him to this website page, And in this page for website you will add a function to detect device, and if device is android, it send a response of google play link and same for ios and if desktop will redirect to main website page.
http://mobiledetect.net
Use this library to achieve what i said above...
I had a lot of success for scenario similar to you by using Branch.io service. It is mostly free with advanced features being priced.
Do have a look at their offering. If not i can help out too.

Is it possible to create multiple facebook SDK instances on a single page without conflict?

I'm working on an application that can be embedded in other pages using an iFrame that requires facebook permissions. The problem is we're running into issues when trying to use the facebook SDK to login from inside an iFrame on iOS (the login window never appears). We're running code on the parent page that places the iFrame, so my question is, can I place our SDK on the parent page without conflicting with any existing Facebook SDKs on that page?
can I place our SDK on the parent page without conflicting with any existing Facebook SDKs on that page?
No, you can’t. The JS SDK can only be embedded and initialized once.
The problem is we're running into issues when trying to use the facebook SDK to login from inside an iFrame on iOS (the login window never appears)
The whole JS SDK popup login flow is not the most suitable for mobile in many cases.
You might have better luck implementing the manual login flow, https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow
If you open that in a new window, you’d have to find a way to close it again, and have the iframe notified that successful login has happend. (Perhaps postMessage before closing the login window.)
Another possible option would be to redirect in the top window (instead of opening a new window/popup), and then after login back to the 3rd-party site, that loads your iframe again. (But not all people using your plugin on their page might like that.)

Display FBDialog in correct size on iPhone

I am trying to display a connect dialog for facebook in my app. The dialog view pops open and loads from facebook. But the page shown is one for regular browser, not the version optimized for mobile phones.
Do I need to do anything with my app or on facebook for it to work? Or do I need to provide that form on my server?
Confused
JT
You need to make sure that the session is actually established before you instantiate FBDialog.