Mobile apps
Put TapSign inside your own iOS and Android app. Your users enrol and approve without leaving it: one button, one fingerprint or Face ID.
Install
- React Native: @tapsign/react-native-sdk.
- Native Android: the TapSign Android SDK (minimum Android 9, API 28).
- Native iOS: the TapSign iOS SDK (iOS 15.1 or later).
Download the SDK packages from the Enterprise portal, Downloads.
iOS setup
Add these two items, or the app cannot use TapSign on iPhone.
- Info.plist: NSFaceIDUsageDescription, with a sentence such as "Uses Face ID to approve sign-ins and payments."
- Signing and Capabilities: add App Attest, with the environment set to production.
Then in the Enterprise portal, open your connector and add your iOS app id under iOS apps, in the form TEAMID.com.yourcompany.app.
Enrol this phone
Your server starts enrolment (POST /device/bootstrap/token) and returns the values to the app. The app registers the phone, and your server saves the device TapSign reports (POST /device/bootstrap/resolve).
import { TapSignSDK } from '@tapsign/react-native-sdk'; const s = await api.post('/tapsign/enrollment/start'); // your server await TapSignSDK.configure(s.apiBaseUrl); await TapSignSDK.registerDevice(s.clientKeyId, s.bootstrapToken, { bootstrapSessionId: s.sessionId, }); await api.post('/tapsign/enrollment/complete', { sessionId: s.sessionId });Approve inside the app
When your server starts an approval, return session_id and challenge to the app.
// payments and actions await TapSignSDK.respondPaymentApproval(clientKeyId, sessionId, challenge, 'approved', { biometricReason: 'Approve this withdrawal', }); // sign-in await TapSignSDK.otpLoginRespond(clientKeyId, sessionId, challenge, 'approved');Then call your protected route. Your server confirms with TapSign as usual.
Approvals started on your website
If the same user signs in on your website, the approval arrives in your app. Listen for it and show the request.
TapSignSDK.addIncomingApprovalListener(({ sessionId }) => openApprovalCard(sessionId)); const first = await TapSignSDK.getInitialApproval(); // the push that opened the app if (first?.sessionId) openApprovalCard(first.sessionId);Rules
- An app never shows an enrolment QR code. Enrolment happens inside the app.
- A website never includes the mobile SDK.
