Prosopo Protect for mobile apps
Native apps don’t run a browser, so they can’t load the Protect script or keep a prosopo_session cookie the way a web page does. The Protect mobile SDKs give your app a key that the phone’s own hardware vouches for and sign each request to your API with it. The Protect edge checks that signature before the request reaches your origin.
| Platform | Package | Device check |
|---|---|---|
| Android | io.prosopo:android-sdk on Maven Central | Android hardware key attestation, optionally with Google Play Integrity |
| iOS | ProsopoAttestIOS Swift package | Apple App Attest |
The mobile SDKs are part of Prosopo Protect, on the Enterprise and Custom plans.
How it works
Section titled How it works- On first launch the SDK creates a key in the phone’s secure hardware (StrongBox or the TEE on Android, the Secure Enclave on iOS) and asks the operating system to vouch for it. It sends that attestation to Protect, which checks it with Google or Apple and registers the key for your site.
- On every request to your protected domain, the SDK signs the request with that key and adds Prosopo headers. Your app’s networking code doesn’t change.
- At the edge, Protect checks the signature, the key’s registration and your device rules, then returns
allow,challengeorblock, the same as for web traffic.
A script calling your API directly has no registered key, so it gets the same 401 with X-Prosopo-Status: no-session that a cookie-less browser gets on a JSON path. On Android, a key lifted off a phone and replayed from a server is refused when it turns up on a datacentre or VPN network after registering on a clean one.
Before you start
Section titled Before you start- Your site must be set up on Protect, with your API paths behind the Cloudflare Worker or AWS Lambda@Edge. The SDKs sign requests; the edge enforces them.
- You need your site key and your Protect endpoint: the subdomain you route to Prosopo, shown under Setup on the Protect page of the portal (for example
https://protect.example.com). - For Android, add each app under Android Apps in your Protect settings. See Android.
Apps with a WebView
Section titled Apps with a WebViewBoth SDKs include a protected WebView. Pages loaded in it, and the requests those pages make, carry the same Prosopo headers as your native requests. The WebView and native code also share one prosopo_session (on iOS from v0.1.9), so a user who moves between a native screen and a web screen is seen as one visitor.
Seeing app traffic
Section titled Seeing app trafficThe portal shows app traffic separately from web traffic. On Protect traffic, requests decided by device checks appear as iOS App Attest and Android Play Integrity, and Verdicts lets you filter to them.