Вопрос

In my iOS app, as part of the mobile payments options, I'd like to direct users who have the Square app installed on their 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://

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top