sumup / sumup-ios-url-scheme

URL scheme documentation and sample app for iOS
17 stars 5 forks source link

canOpenURL: failed for URL #1

Closed dipsvaishnav closed 7 years ago

dipsvaishnav commented 8 years ago

-canOpenURL: failed for URL: "sumupmerchant://" - error: "This app is not allowed to query for scheme sumupmerchant"

JohannesRu commented 8 years ago

Hey, thanks for reaching out. You probably want to set LSApplicationQueriesSchemes in your info.plist

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>sumupmerchant</string>
</array>

You can find more details in the docs https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html%23//apple_ref/doc/uid/TP40009250-SW14

Let us know if the issue remains, hope I could help :-)

dipsvaishnav commented 8 years ago

I got this error

-canOpenURL: failed for URL: "sumupmerchant://" - error: "(null)"

2016-07-12 13:42:30.724 SMPPaymentSampleApp[11934:433331] SumUp app is installed: NO

2016-07-12 13:43:10.945 SMPPaymentSampleApp[11934:433331] request: <SMPPaymentRequest: 0x7f9da05d3220>scheme://pay/1.0?amount=1.00&currency=EUR&affiliate-key=169f0ee2-bc0a-470f-8fac-f30c26d698da&title=the%20&callbackfail=samplepaymentapp%3A%2F%2F&callbacksuccess=samplepaymentapp%3A%2F%2F&receipt-email=dvaishnav750%40gmail.com http://40gmail.com&foreign-tx-id=9587374676-33C8E985-6E44-48C0-B282-D156AB285E66-11934-00002F7F8725D3F1 :sumupmerchant://pay/1.0?amount=1.00&currency=EUR&affiliate-key=169f0ee2-bc0a-470f-8fac-f30c26d698da&title=the%20&callbackfail=samplepaymentapp%3A%2F%2F&callbacksuccess=samplepaymentapp%3A%2F%2F&receipt-email=dvaishnav750%40gmail.com http://40gmail.com&foreign-tx-id=9587374676-33C8E985-6E44-48C0-B282-D156AB285E66-11934-00002F7F8725D3F1

Deepak Kumar Vaishnav

On Tue, Jul 12, 2016 at 1:39 PM, Johannes Rupieper <notifications@github.com

wrote:

Hey, thanks for reaching out. If you build for iOS 9+ you probably want to set LSApplicationQueriesSchemes in your info.plist There is more info on the security feature here:

https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html#//apple_ref/doc/uid/TP40009250-SW14

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sumup/sumup-ios-url-scheme/issues/1#issuecomment-231968532, or mute the thread https://github.com/notifications/unsubscribe/AINxLWxDvFOBDpjrn7LZ1sC3g0SmD5KZks5qU0vVgaJpZM4JKIsQ .

JohannesRu commented 8 years ago

Thanks for the details. Can you confirm that in your info.plist you added app query scheme "sumupmerchant" to LSApplicationQueriesSchemes as shown in my previous message?

dipsvaishnav commented 8 years ago

Yes

Deepak Kumar Vaishnav

On Tue, Jul 12, 2016 at 1:47 PM, Johannes Rupieper <notifications@github.com

wrote:

Thanks for the details. Can you confirm that in your info.plist you added app query scheme "sumupmerchant" to LSApplicationQueriesSchemes as shown in my previous message?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sumup/sumup-ios-url-scheme/issues/1#issuecomment-231970121, or mute the thread https://github.com/notifications/unsubscribe/AINxLfgrjEvyHkGH8OSlAWUOVJiKQHxzks5qU02QgaJpZM4JKIsQ .

dipsvaishnav commented 8 years ago

Deepak Kumar Vaishnav

On Tue, Jul 12, 2016 at 1:50 PM, deepak vaishnav dvaishnav750@gmail.com wrote:

Yes

Deepak Kumar Vaishnav

On Tue, Jul 12, 2016 at 1:47 PM, Johannes Rupieper < notifications@github.com> wrote:

Thanks for the details. Can you confirm that in your info.plist you added app query scheme "sumupmerchant" to LSApplicationQueriesSchemes as shown in my previous message?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sumup/sumup-ios-url-scheme/issues/1#issuecomment-231970121, or mute the thread https://github.com/notifications/unsubscribe/AINxLfgrjEvyHkGH8OSlAWUOVJiKQHxzks5qU02QgaJpZM4JKIsQ .

dipsvaishnav commented 8 years ago

can u give me Skype id please

Deepak Kumar Vaishnav

On Tue, Jul 12, 2016 at 1:51 PM, deepak vaishnav dvaishnav750@gmail.com wrote:

Deepak Kumar Vaishnav

On Tue, Jul 12, 2016 at 1:50 PM, deepak vaishnav dvaishnav750@gmail.com wrote:

Yes

Deepak Kumar Vaishnav

On Tue, Jul 12, 2016 at 1:47 PM, Johannes Rupieper < notifications@github.com> wrote:

Thanks for the details. Can you confirm that in your info.plist you added app query scheme "sumupmerchant" to LSApplicationQueriesSchemes as shown in my previous message?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sumup/sumup-ios-url-scheme/issues/1#issuecomment-231970121, or mute the thread https://github.com/notifications/unsubscribe/AINxLfgrjEvyHkGH8OSlAWUOVJiKQHxzks5qU02QgaJpZM4JKIsQ .