I am working on an app extension, that should help me to get the article URL via the sharesheet in the amazon app or in safari when surfing amazon.
For safari, I receive the info as type kUTTypeURL. From Amazon, I get the URL as type kUTTypeText. As long as I haven't set up the NSExtensionActivationRule in the info.plist, it worked fine. Now it only works for Safari, but not for Amazon. This is my current plist:
I added the DictionaryVersion as I want to avoid that it is not working because Amazon doesn't provides URL and Text - but my App is not showing up any more in the sharesheet for Amazon.
I already checked help on stackoverflow, e.g. IOS Share extension: how to read from notes posts, and also the apple documentation here: https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/AppExtensionKeys.html.
It works for me when setting up the plist like this:
Related
I am trying to get Firebase Dynamic links that I have integrated on my ios app to open. Following the youtube tutorial (https://www.youtube.com/watch?v=KLBjAg6HvG0) I have downloaded my app onto my phone from Xcode. When I try to open up the link I automatically get redirected into safari browser and I'm presented with this image.
https://imgur.com/a/e6AJMhj
The tutorial runs threw several things that could be the reason for my link not opening up my app
Make sure to have the correct URL in the Associated Domain Setting which I do. https://imgur.com/a/lJExtjU
Check and make sure that you have the correct App ID prefix entered in the console which is true because Xcode verifies that. https://imgur.com/a/LVytoni
Universal link for the domain was disabled because I opened it in Safari and I have to now long press on the link and open it in the app. Now heres the problem.
In mail app, imessages app, and notes app all dont have an option to "Open in .
Mail (https://imgur.com/a/Pz81IqN), iMessages (https://imgur.com/a/2ykChUM), and Notes app (https://imgur.com/a/lwoejEH).
Even referencing these guides I am unable to solve my problem (Universal Links iOS) (Universal Links not working on iOS10)
Check to make sure the apple-app-association file in created which it is and it shows that #2's image.
I have exhausted all options and googling for answers is now getting me nowhere. I need help on how to get my Universal Link working again.
It helps if applinks is not spelled "applink" in the Info.plist associated domains.
I'm trying to open an app from my own app that is also installed on my iPhone called KIJK. I've added the kijk string to the array in the Info.plist and am calling the -canOpenUrl method but it always fails.
I get this error message:
OSStatus fout -10814
Now I'm wondering, in Safari it is possible to open the KIJK app with a link that is made up like this: kijk://serie/123311 so I assumed kijk was the query I needed to add in my plist file.
Is there a way to find out the app scheme of an app I didn't develop? I checked a lot of answers already but they all seem outdated because of new iOS or iTunes versions.
<key>LSApplicationQueriesSchemes</key>
<array>
<string>kijk</string>
<string>rtlxl</string>
<string>npo</string>
</array>
Q: Is there a way to find out the app scheme of an app I didn't develop? I checked a lot of answers already but they all seem outdated because of new iOS or iTunes versions.
There is no way for you to find out the URL Schemes of another app until unless they declare. For example, Facebook, Uber, etc. Click the link to see Facebook apps URL Schemes.
https://developers.facebook.com/docs/ios/ios9 => Whitelist Facebook Apps
Q:Now I'm wondering, in Safari it is possible to open the KIJK app with a link that is made up like this: kijk://serie/123311 so I assumed kijk was the query I needed to add in my plist file.
If the KIJK app had URL scheme with the format like "kijk://" then it will open the app. Otherwise, it is not going to open the app.
I guess you might be aware of the rule that from iOS 9 you need to whitelist the schemes your app will query using canOpenURL.
I am providing a feed which is consumed by both desktop and mobile apps which contains links to images, users, and tags on Instagram. When these links are clicked on iOS, I want them to open in the Instagram app.
Currently if I have a link like this:
https://www.instagram.com/p/BK8f1rigadE/
If I click it in iOS, the Instagram app does open, just briefly. It then seems to launch Safari to the page, which includes an "open in app" link to open it back up in the app. That link uses the "instagram://" protocol to trigger the app to open. I'm aware of that method, but that's not what I'm after.
I'm on iOS 10 with the latest Instagram app. I feel like this used to work, so I'm wondering if it's just a bug in iOS or Instagram that will be fixed eventually.
Links to twitter.com open properly in the Twitter app... that's the kind of behavior I'm after.
I found a service called URL Genius (via this blog post) that solves this exact problem, and provides click metrics, too.
I don't like relying on an external service for such an important link, but it's easy, works well, and the basic service is free. I will probably set a reminder for myself to check that this still works every month or so...
Links like this work to open the app:
instagram://media?id=1346423547953773636_401375631
However I want a regular http link, which opens a browser on desktop, and the app on mobile. Not sure if it exists.
From my knowledge, the only supported links into Instagram are described here
I'm not sure what the link you're attempting to use represents: /p/id_here seems like a post? You likely need to use:
https://www.instagram.com/media?id=id_here
The documentation I linked shows the "deeplink" approach (instagram://) which I understand you're avoiding, but the same paths should work through the Universal Link approach, at least from my experience.
Had the same problem. For me was solved by simply uninstalling and reinstalling the problematic app.
(Instagram 171.0 - iOS 14.3 - iPhone 11 Pro)
On iOS you must first add the instagram url scheme in the LSApplicationQueriesSchemes key of the info.plist file:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>instagram</string>
</array>
then you can open the url of the post using the link:
instagram://media?id=POST_MEDIA_ID
POST_MEDIA_ID can be found by looking at the page source, you will find a tag like this:
<meta property="al:ios:url" content="instagram://media?id=POST_MEDIA_ID"/>
Obviously, the Instagram app must be installed on the device, otherwise the link will not work.
I have implemented iOS universal links to my app and everything is working fine when link is send to email and triggered from mail app, but not works when triggered from gmail app (opens link in embedded browser). I find out that some other app links such as Youtube or TestFlight is working from gmail app. Please help me to find out what I'm doing wrong.
Universal Links only work in Gmail under very specific circumstances: the embedded webview needs to be already open, so clicking a Universal Link directly from the text of an email doesn't work. You can find a list with more information here.
It's possible YouTube and TestFlight actually aren't using Universal Links to trigger those apps. I haven't looked at them recently.
Shouldn't we be able to use Universal Links into Amazon on iOS? They are hosting this file: https://www.amazon.com/apple-app-site-association and this blog post seem to be certain of it. However, if I make a link that follows one of their site-association rules, such as
http://www.amazon.com/gp/product/0062273205,
I keep getting directed to Safari instead of the app. I have never clicked Back to X from the Amazon app, so it can't be that cache that is messing with me.
Universal Links do work with the Amazon app on iOS. I tested the example (http://www.amazon.com/gp/product/0062273205) on iOS 9.2.1, and it opened the app as expected.
Have you have scrolled all the way to the top of the Amazon page? There should be a banner like this that will forward you to the app. If not, I suppose it's conceivable that your copy of the Amazon app didn't correctly register for Universal Links when first installed. You could try deleting it and reinstalling.
I know this is an old question, however I did post an answer that seems to work currently which might help someone:
I too had mixed results with universal links, it worked on some devices and not on others even though the Amazon app is installed.
In summary, what I did was:
Using https://www.appsight.io/app/amazon I was able to get the URL Scheme for the amazon app
I whitelisted that URL scheme in my info.Plist
I added some code to check if I can open the amazon app using the scheme otherwise I should fallback to using Universal links
Exact code I used is available on my answer here.