开发者

Does the Square app have a custom URL scheme?

开发者 https://www.devze.com 2023-04-08 07:49 出处:网络
In my iOS app, as part of the mobile payments options, I\'d like to direct users who have the Square app installed on thei开发者_JAVA百科r device to use this as a payment option.

In my iOS app, as part of the mobile payments options, I'd like to direct users who have the Square app installed on thei开发者_JAVA百科r device to use this as a payment option.

Is there a custom URL scheme that Square uses that would allow me to launch their app from within mine?


Yes, the Square app does have a custom URL schema you can call: square://

You can also see if the application is installed by the following method:

- (BOOL)isSquareInstalled 
{ 
    return [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"square://"]]; 
}


The Square Pay app uses the URL Scheme square-pay://

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号