A µLibrary for making calls using Doximity.
Doximity lets healthcare professionals make phone calls to patients while on the go -- without revealing personal phone numbers. Calls are routed through Doximity's HIPAA-secure platform and relayed to the patient who will see the doctor's office number in the Caller ID. Doximity is currently available to verified physicians, nurse practitioners, physician assistants and pharmacists in the United States.
This µLibrary lets 3rd-party apps easily initiate calls through the Doximity app.
To initiate a call using Doximity, simply call the dialPhoneNumber
method on the shared DoximityDialer
instance.
If the Doximity app is not installed, this call will direct the user to Doximity on the App Store.
Most reasonable phone number formats are accepted by the dialPhoneNumber
method, e.g.:
- using numbers only:
6502333444
- formatted:
(650)233-3444
- with a leading international area code:
+1(650)233-3444
import DoximityDialerSDK
...
DoximityDialer.shared.dialPhoneNumber("4254443333")
@import DoximityDialerSDK
...
[DoximityDialer dialPhoneNumber:@"4254443333"];
The library also includes a version of the Doximity icon appropriate for use inside buttons. It's available through
DoximityDialer.shared.dialerIcon()
DoximityDialer.shared.dialerIconAsTemplate()
(for use in tinted views)
DoximityDialerSDK supports iOS 15.0+.
First, you must give your app permission to open the Doximity app.
In your app's Info.plist
, add a new entry with key LSApplicationQueriesSchemes
(or Queried URL Schemes
) and value type Array
if one does not already exist.
Then add an element to the array of type String
and value doximity
.
DoximityDialerSDK is now distributed via Swift Package Manager. To use this library in your project, add the https://github.com/doximity/CallWithDoxDialer.git repository as a Swift Pacakge.
To integrate DoximityDialerSDK
without a package manager, simply download the following files, and place it anywhere in your project:
Sources/DoximityDialerSDK/DoximityDialer.swift
Sources/DoximityDialerSDK/DoximityDialer.bundle
If you need any help, please reach out! [email protected].