mapping iphone uuid to phone number - push-notification

I am developing an mdm server to interact with apple push notification service. When I install a configuration profile on an iPhone, the device pushes the UUID and push magic string to the server. My goal is to install configuration porofiles on large number of iPhones. On the server side I don't know the UDID phone number mapping, All I have is phone number. How to I map the UUID to the phone number.
When I send a push notification I have to use UUID, to send correct push command on qualified devices, I need the UUID vs phone number mapping

After a device registers with your MDM system you will know that device's UDID (unique device identifier). You can then send a DeviceInformation command to the device and get the phone number (if, in fact, the device has a phone number). You will save that phone number in the database in a record associated with the UDID you got when the device initially enrolled in your MDM.
From this point on, whenever you send a command to the device that command will have a UUID. Make sure your system remembers the UDID of the device that you are sending this command to. When the device responds that response will contain this UUID and using this UDID you can then look up the UDID (and hence the phone number) of the device that responded.
Note: If you are trying to use the phone number as a unique identifier for an enrolled device, don't. Use the UDID instead.

You don't have to use the DeviceUUID for push notifications, you neet one of the two deviceTokens (sandbox or distribution) generated by Apple.
After getting the deviceToken from Apple in the
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)devToken
you have to register your device at your server and also send the phoneNumber.
I don't see an other option.

Related

File format for sending a list of addresses or coordinates to mobile phone in order to show routes through the addresses?

I would like to send a list of addresses or coordinates to a driver in a vehicle. The driver is using a mobile phone. (Android or iPhone).
Some years ago, I believe I read that there was a file format for transferring/sending this type of information to a (Google?) app running on e.g. an Android phone. After having received the addresses/coordinates (typically from an email), the app on the phone would show routes from A to B, and B to C, etc.
Anyone having a tip on this? Any standard file format for sending this? Any tip on a phone app that may receive and show routes through a set of stops?

HM-10/CC41 talk to BLE server

I've done a lot of searching but have yet to find any examples of the data format for accessing a simple BLE characteristic. I have a CC41 (HM-10 clone) that I have set to master mode and successfully connected to a BLE server device using a PC terminal program and the AT commands. I now want to send the proper data to access a service such as Immediate Alert (0x1802) and it's Alert Level characteristic (0x2A06). I know the full service and characteristic UUIDs and the data value for turning the alert on/off. I can do so from the nRF phone app but it doesn't tell me the data protocol that is actually sent from the app. I assume that the UUID needs to be sent as hex data, not a string, but nothing I've tried so far works. If the phone app can do it, then I would think that I can do it manually as well. Any ideas?

Android BLE as Peripheral Multiple Advertising Issue

I am working on Android BLE as a peripheral connected to a custom device that runs Nordic NRF51 as a central. The project requires Android peripheral to connect to two NRF51 central devices.
Android is advertising two different Advertisement UUIDs one for left and other for right Nordic NRF51 devices. Ideally, I would like to have both Nordic Centrals to connect to the Android at the same time.
I have two main issues.
First issue. Android can get both connections fine. The problem occurs when Android sending notification or Android sending reply back as result of Write Request from the central. When both Centrals are connected, often notification nor the send reply works. I confirmed that the Nordic central does not receive the notification nor the reply. Does anyone have experiences in Android as a Peripheral supporting multiple connections at the same time? I have tried two BluetoothGattServer instances (one for each device) as well as one instance of BluetoothGattServer and based on the connected device, I can tell which Central the event if for and handle it correctly. It is sending notification or send reply to Write Request that at times it does not get sent from Android. I am using synchronized methods on the GattServerCallback event handlers.
Second Issue. Due to the first issue, I am now only advertising one UUID at a time. The idea is to switch between two advertising UUIDs, thus have only one connection at time. The problem now is switch advertising. About 1 out 3 times, when I start advertising with first UUID with its name (LFDroid), it appears that it is actually advertising second UUID with its name (RTDroid) briefly (1 or 2 seonds) and then advertises what was requested. Note that second UUID advertising was stopped on previous switching. It almost looks like when I ask to advertise, it starts to advertise with the last advertised UUID and name and then quickly advertises what is requested. This now causes problem because both Nordic Centrals sees the advertisement and connects.
Any suggestions would be appreciated.

Sony SmartWatch 2 communication with Host Application on phone

As i know host application for Sony products are responsable for communication between phone and accessory.
But, in bluetooth data transfer from phone to watch what is specially transferred?
For examle, My Extension data as a object array and layout which will be displayed passed to watch? Or all rendered 176x220px UI block is send from phone to watch.
In this transfer is there any security issues to be considered?
Thanks.
Everything is passed to the watch from the host application, so it would be the complete 176x220 bitmap.
As far as security, Bluetooth data is encrypted in BT v2.1+ plus the user still has to pair the device and confirm a pairing code as with all BT devices. So it's not any less secure than any other Bluetooth device on the market in that respect.

INitiate SMS by sending ussd request

Is there any way to initiate an SMS MO from a device from the network. Eg: Can I send a special USSD push to a device from the network so that it will SMS a specified text to a specified number from the device.
Only if you are the network operator and the USSD message is defined in the network and supported by the device.
You could also send a MT SMS and get the specified text as a reply (again supported on the device, obviously).
This largely depends on the device capabilities. The device needs logic for processing the USSD message, instead of just displaying it, and to trigger sending the MO SMS.
Since this is not a factory configuration, you would need a custom application to be installed on the device, provided that the device platform allows for the needed functionality. For example some J2ME-capable devices do have this functionality. Consult your device manufacturers development documentation.

Resources