What is the Pay with Square app's custom url scheme? - url

I am looking for the custom URL scheme for the Pay with Square app that customers use to pay with their smartphone - not the Square card reader for merchants. I know this custom url - square://. I found one posted here for the Pay with Square - square-pay://, but it does not work. I want to launch the app separately via an app I am building.

square-pay:// is working for me. I just added it to Launch Center, and it popped right up.

The Custom URL Scheme square-register:// will simply launch the Square Register app.
The scheme that supports other details getting passed is square-commerce-v1://
But you have to get approved as a developer to use the scheme.
https://docs.connect.squareup.com/api/connect/v1/index.html#initiating-a-payment

Related

Are iOS app clips launchable from an url?

Are iOS app clips launchable from an URL?
The Apple description says that the QR code embeds an encrypted URL to access the clips. Is it possible to use directly that link like with deep links?
As I understand, URLs can only be opened from Safari Smart App Banner. I managed to do that. Apple states in their forums that it is also possible from QR codes.
Looks like you can't just click a link - like in Universal Link - and the App Clip Card will show up.
If I understood correctly, you can set up invocation URLs in App Store Connect and when the system opens a registered URL your App Clip should launch.
You can learn more in this WWDC session and from the documentation.
When a user shares a link to a site that displays a smart banner configured for AppClip, then only message will present a banner that will invoke an App Clip.

Set your app to detect and open when a specific link is clicked - Xcode, Swft 4

I'm currently working on an iOS app, Swift 4, that automatically launches on click of a link to block users from accidentally navigating to that link.
How would I set this up?
For example, YouTube opens up youtube.com links.
Sorry if this is a vague question, if more info is required feel free to ask ^^
If you create a custom URL protocol like myapp://somepath (where myapp is the protocol) then you just register that custom protocol, and when the user clicks such a link it’ll automatically open your app. You can’t intercept a general purpose URL protocol like HTTP or YouTube.
(At least not without OS support. That's how YouTube and the app store are able to open HTTP links.)
I haven't done anything like this so far but it seems like you should take a look at Apple URL Scheme and Universal Links:
https://developer.apple.com/library/content/featuredarticles/iPhoneURLScheme_Reference/Introduction/Introduction.html
https://coderwall.com/p/mtjaeq/ios-custom-url-scheme
https://developer.apple.com/library/content/documentation/General/Conceptual/AppSearch/UniversalLinks.html
https://www.raywenderlich.com/128948/universal-links-make-connection?utm_source=raywenderlich.com%20Weekly&utm_campaign=95f29cf4fc-raywenderlich_com_Weekly5_31_2016&utm_medium=email&utm_term=0_83b6edc87f-95f29cf4fc-415182745

How to launch directly to the post review page in Facebook iOS app with custom url?

I know that Facebook's custom URL scheme for iOS goes pretty deep, but I'm not sure if it would be possible to link directly to the post review page for a business.
I can launch to the business page with this URL:
fb://profile/323276694418242
But I'd like to launch directly to this page:
I have been attempting to find an answer to this for 2 years now, and the closest I've come is linking to the Reviews "screen" of the app by using the mobile web URL and not even the fb:// URL scheme. For example, https://m.facebook.com/pg/PAGE_NAME/reviews/ If the person has the app installed on their phone, this works. From there the user must tap the stars to leave their review.
Has anyone discovered a better solution, closer to what novicePrgrmr was asking originally?
Some URL schemes are listed here http://wiki.akosma.com/IPhone_URL_Schemes#Facebook. There's nothing about URL schemes in official documentation, so it may be unreliable.
fb://page/(fbid) will work to open to a specific page.
In Reviews documentation we have the following format https://graph.facebook.com/2345053339/reviews.
Try to derive URL scheme from this: fb://page/(fbid)/reviews or something similar.

Post link to Facebook including app URL scheme - iOS 6

I'm using the UIActivityViewController to share an image and url from within my app.
I'm having trouble formatting the facebook post. I attach an image using a subclassed UIActivityItemProvider and provide the text for the post in the same way.
I want to add a url, but it needs my apps custom url scheme in front of it like this
myurl://image?url=http://imageurl.com
The problem is, when this is posted, only the last half of the url is clickable (from http:// onwards). Which means it doesn't open my app with the url.
Is there another way to do this?
I know I can create an app on Facebook, but how can I tie the two together using the UIActivityViewController?
Thanks
You have 2 options :
Create a simple server-side web service that will redirect from http://yourserver.com/linkToApp/image to myurl://image .
It could even show a different page/preview if the app is not installed/if you're not on an ios device.
Create a facebook app and use "Deep linking" (it will basically do the same for you..)

Possible to launch Apple's default weather app from my application?

One of my client wants to open Apple's native weather app from our application. After few I don't see a possible way, unless we need to go with any 3rd party apps which provides custom url scheme.
http://developer.apple.com/library/ios/#featuredarticles/iPhoneURLScheme_Reference/Introduction/Introduction.html#//apple_ref/doc/uid/TP40007899
It would be great if someone confirm or give me a lead if it is possible.
Its not possible, the weather app doesn't have a known URL scheme and I dubt that it has an unknown one.
The website handleOpenURL is an excellent resource for custom iOS URL schemes; use this link to search for the known Apple app schemes.
Unfortunately the weather app is not among them.
Another couple of sites with schemes (handleOpenURL seems to be the most complete, but it can't hurt to check the others):
app lookup
Akosma iPhone URL Scheme Wiki
You can open the weather app with this URL: weather://
Here is a codepen demo I got to work: https://codepen.io/irom1/pen/KKeZBMW
Open weather
I found another site for sharing the url scheme - http://schemes.zwapp.com/

Resources