I am following steps as stated in this link: Build on iOS
I implemented following steps:
- Initialize SDK
MobilePaymentsSDK.initialize(
applicationLaunchOptions: launchOptions,
squareApplicationID: <My app id>
)
- Authrorize SDK
authorizeMobilePaymentsSDK(accessToken: <My access token>, locationID: <My location id>)
- Start meter pairing
pairingHandle = MobilePaymentsSDK.shared.readerManager.startPairing(with: self)
However on 3rd step I am always getting following error:
An unknown Bluetooth error occurred
As printed in readerPairingDidFail
method.
Please note that I am trying it from India.
I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
Additional Documentation
Enable Apple Pay
Mobile Authorization API: How It Works
Reader SDK Quickstart
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.
Are you trying to pair in production?
Yes, we are trying to pair the devices in production.
Have you been enabled to pair it in an unsupported region?
No idea, is there any way to do that?
I guess you are pointing that it is not supported in current region. Did I get it right?
If that is the case, why it does not log the accurate error message? ‘An unknown Bluetooth error occurred’ is misleading in that case.
The error your getting is due to something else that the team is looking into.
ok
What about:
Have you been enabled to pair it in an unsupported region?
Are there any elevated permissions which are required to pair a device in another region say India?
It’s not supported in India. This is a security feature that’s in place.