How to disable deep linker in Ionic? - ionic-framework

Is it possible to disable deep linker in Ionic application.
For example, if I call this.navCtrl.push('SomePage'); then URL is changed to http://localhost/some-page
I need URL NOT to be changed. Is it possible?

Related

does the Facebook SDK (for iOS) break pre-existing deep links?

I have an iOS app that uses deep linking as part of an out-of-app authentication flow within a web view. Upon authentication, a redirect is made back to the app with the deep link prefix.
Ive installed the Facebook SDK because I wanted to track conversions, but after doing so, it seems to have disabled my deep linking functionality.
Is this expected, and if so, how do I get around it?
I figured out that the SDK will overwrite any of the URL types that you have specified in the project info. So you need to re-add your original deep link(s)

Launching custom URL scheme in Flutter

I'm trying to implement this functionality in Flutter. The android side is easy to mimic using the android_intent package, however I've yet to find a way of launching custom URL schemes in Flutter. There are packages that allow custom URL schemes to be accepted in the app, however I don't think they can be used in my case (uni_links).
I'm aware that I could use platform channels however I would prefer to keep my code all in Dart. Thanks
I use firebase_dynamic_links to handle custom URL schemes. You may want to consider also looking into that. You won't be needing to touch platform-specific code, but you'll need to update the AndroidManifest.xml and Info.plist file.

Is there any alternative to Universal-linking in SWIFT?

Okay I have been trying day long to figure deep linking and universal linking.
I am trying to design an app which has a deep link as "bunty" .
So I have a web link as http://www.bunty.org & if I click on this URL in my iphone it would result in opening myapp. And if not it would open the url in Safari or any other browser.
Till now my search results direct me towards Universal Linking . So is there any other way to achieve what I am trying to do like going via deep linking only?
I think what you're saying is that you want to deeplink into your app with the base URL. Unfortunately for universal links on iOS, this behavior is expected - Universal links only work from a different domain. So, you won't be able to open your app through the root domain.
You can use universal links through a non-root domain. One way to make this easier is to use branch to make deep linking easier - it's totally free and you can make custom redirects for individual links and platforms, and pass data through install.
As of iOS9.2, URI schemes are deprecated, so going with Universal links is probably your best option. If you use Branch, you can also set up a custom domain (not the same as your root domain) with Cloudflare to use for your Universal links.

iphone phonegap change url

Is there any way of changing the url for phonegap on iPhone/iPad? In Android you can simply use loadUrl to change the url but a function like this doesn't seem to exist on iPhone/iPad.
I know there is a 'dirty' hack by using a redirect... but this rules out the use of the phonegap api on the external website which you are including in phonegap (via redirect).
Any help on this guys?
Many thanks.
If you want to change the url when you click on a link you just need to do :
window.location="page.html";
OR
window.location.href="page.html";

Is it possible for native iOS application to interact with Safari browser?

I would like to enable interaction between a native iOS application and the Safari browser such that tapping a right click on an image on a webpage provides an option in the context menu to send the image to another custom written native iOS application for further processing and/or storage.
However, according to this article from Safari Developer Library, “Safari extensions are not currently supported on iOS”.
Is there any other alternative to achieve the above functionality?
You have multiple choices here:
You could register in your application's Info.plist file that your app known how to handle certain type of documents (see here in Apple's doc). This way when your iPhone encounters this document type, iOS will propose the user to open this document in your app; for example if you register for the PDF type and you then tap on a PDF document as an attachment in a mail, you app will be listed in the proposed menu and will then be opened with the document as a parameter.
But it seems that even if this works perfectly for any type like DOC, PDF, or even custom types, it does not work for images, which seems to be handled in a separate way by iOS :(
A simpler way would be to register, still in your application's Info.plist, any custom URL schemes. See here and below in the Apple's doc. For example when, anywhere in your iPhone (either in your own app, or in another third-party app, including Safari), it encounters URLs like "myapp://xxx/yyy/zzz", it opens your app, passing this URL as an argument. You can then do whatever you want with this URL.
The solution then is to add some code in your web page so that when the image is tapped, you ask Safari to open the URL "myimageditor://edit?url=http://www.url.of/your/image.jpg". If you registered for the "myimageeditor://" URL scheme, you app will then open with the URL in the parameters, and you then will be able to retrieve the image using the embed URL.
I think it is possible only for jailbroken devices.