How to get sim contacts information programmatically on Blackberry - blackberry

I got the BlackBerryContactList programmatically..
Now I want to get sim contacts infomation programmatically..
is it possible on blackberry.?
if possible means, how to get sim cantacts information?

As far as I know there is no API in BlackBerry Java SDK to obtain SIM Card contacts.
The most recent java SDK version (version 7) provides only SimCardInfo class with getIMSI method inside. But it retrieves the International Mobile Subscriber Identity number. And sim card contacts are not available.

Related

How to identify user using mobile data from esim or physical sim in iOS

I want to know that user using mobile data from esim or physical sim in iOS and also which sim card is active.
You can probably get this information from Apple's private APIs only, using CTCellular but this is definitely not a recommendation unless you are a Carrier and have permission to use the APIs.
CTTelephonyNetworkInfo provides some information about the carriers that are subscribed to on the user's device, but not whether it is esim/sim.
import CoreTelephony
let networkInfo = CTTelephonyNetworkInfo()
debugPrint(networkInfo.serviceSubscriberCellularProviders)
Will provide you with this:
Carrier name: [EE]
Mobile Country Code: [<nil>]
Mobile Network Code:[<nil>]
ISO Country Code:[<nil>]
Allows VOIP? [YES]
Check out the documentation - https://developer.apple.com/documentation/coretelephony
The data services identifiers aren't reliable, but last time I checked, a dataServiceIdentifier of "0000000100000001" = physical and anything else is eSIM.

Sinch/Twilio iOS SDK use case

I have a use case in which I want the user to only be able to verify himself from the device that contains the sim card he is registering himself from. As this is a financial application which tracks user accounts based on their cell number. So I don't want people to share the verification code and register from another device while sending the verification code on another device. It is possible in android to enforce user to register from same device using auto-fetch but iOS does not provide this capability. Is it possible using Sinch/Twilio sdk in iOS? Pleases guide me in this regard.
Twilio developer evangelist here.
I'm afraid it's not possible to intercept incoming SMS messages on iOS like you can on Android with the Twilio verification SDK. So this isn't possible as far as I am aware.

blackberry Mapfield and RichMapField show blank page

I want to create a map field into my blackberry app using java eclipse, I create a map field and RichMapField and both shows blank page.
Note that my device does not contains a sim card, please can anyone helps me
As far as I can tell, BB maps requires BIS to be enabled. And since you don't have a sim in your device, I'd rate thats the problem.
Do I need to have a BIS or BES service in order to use MapField in the code?
I find this to be really silly and kind of unacceptable, so depending on your requirements, I'd consider Google Maps instead.
Use Google Map in Blackberry application
Bing Maps SDK For Blackberry 6.0 (Accepted answer is an example of using Google Maps installed on the device)

Transfer Contacts from Blackberry to I-phone in blackberry application

I am working on a Default phonebook contacts application, In my app i m trying to transfer my BB contacts to Iphone device. Currently doing R & D on this task.
Please let me know, as blackberry is known for its security, after that, is this task possible?
Thanxx i advance.
There is a simple way to transfer contacts between different mobile devices. This way does not involve programming skills and does not need any special custom software installed.
Connect your blackberry to your computer and synchronize contacts with your mail client, let say Outlook.
Disconnect blackberry, and connect iPhone to your computer and synchronize contacts with Outlook again.
That's it.
There is no way to transfer contacts directly using your application unless you have documentation on the formats and synchronization protocols for both of the platforms.

Is there an unofficial way to get the device phone number?

I would like to programatically get the device phone number (on iOS5 and iOS6).
Are there any unofficial ways for doing so?
Are there any private Core Telephony APIs or IOKit APIs that can be used for example?
And yes I do know my app won't be accepted in the AppStore
Private API
There is a private API to get phone number. Private API can't be submitted to AppStore, but it can be executed on jailed device.
NSString* CTSettingCopyMyPhoneNumber();
It returns phone number. And it's located in CoreTelephony
MDM
And actually, there is even a legal way of getting phone number. However, it's complicated. There is MDM protocol for iOS. One of the commands retrieves information about a device and this info includes phone number (and a lot of other device info).
Other notes
Also, you may be interested to read through these several questions:
Programmatically get own phone number in iOS
How can I get the phone number of my iPhone device?
You could start by searching in the private headers.

Resources