BLE send passkey programmatically [closed] - ios

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
When i connect my device to my peripheral, he asks me a passkey (a pop-up is shown on the device). I want to send this passkey programmatically during the connection.
I'm using CBCentralManager but I can't find a way to send it.
Any suggestions?

You can't do this. This is part of the security model. If your BLE peripheral specifies that encryption is required to access one of its characteristics then pairing is required. The passkey is collected by iOS, not your application, and your application does not have any access to the passkey or the pairing/bonding process

Related

How to get user default email address in ios swift [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Is there any way by which i can get current users email address of ios device.
i need all the default email address or email address of associated google account.
You can not get the email address configured in the Mail app since it's considered breach of privacy.
You can however use the MFMailComposeViewController which will prompt the user to send email using their email address.

REST API for Apple Health Data [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Is there any REST API support for health data by Apple? I know healthkit api helps to send and receive data from apple health data store but it is very much restricted to ios apps.
What i am trying to achieve is to utilize the send/receive from any other platform like web / other apps etc., Any information / solution appreciated.
I have not seen one, but this is a very new service for them. Still my guess is like most Apple services this will likely be restricted to Apple devices.

Is is possible to make a specific http call using cellular while you are connected to wifi on iOS [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am developing an application for an operator. They want to get the msisdn of the user by making an http call using cellular connection. Can this also be done while you are connected to wifi. Thanks.
No, as an developer you can not choose the connection used to make HTTP calls.
I've been developers an App for an operator for 3 years now and would also like this option, but Apple has not released any API for this.

iOS, APNS, Push Notification, DeviceToken,iPhone [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
We are registerting our iOS application for APNS. After that APNS provide a deviceToken. Is there any process to get the iOS device registration URL on APNS.
I think No. You need your own server where you will put notification logic.

Is there any way to simulate something similar Nintendo's Streepass functionality in iOS? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Essentially is there any way to have an app run at all times in the background and sense other iOS devices around it running the same app?
you can have an app monitor your current location in the background. When you get location updates, you could talk to a web server that would tell you if other people are nearby.
You can't make apps that run as services on iOS though. There are only a handful of things they're allowed to do in the background like monitor location and play music.

Resources