🛡️ Android Full-Screen Intent (FSI) Guide
Overview
Pitel VoIP SDK for Android supports two incoming-call presentation modes:
NOTIFICATION: High-priority heads-up notification with Answer and Decline actions.FULLSCREEN: Displays the full-screen incoming call Activity (PitelCallActivity) on the lockscreen when the host app declaresUSE_FULL_SCREEN_INTENT. If the permission is missing or not granted by the user, the SDK automatically falls back to an actionable heads-up notification.
The SDK defaults to FULLSCREEN for compatibility with standard incoming VoIP call UX. However, to comply with Google Play Developer policies, the SDK library no longer bundles USE_FULL_SCREEN_INTENT in its merged manifest. Host applications must explicitly declare the permission if they qualify as a Calling or Alarm app.
Android Version Behavior
| Android Version | FSI Status Behavior |
|---|---|
| Android < 10 | NOT_REQUIRED: Special FSI permission does not apply. |
| Android 10–13 | A declared permission in AndroidManifest.xml is automatically available. |
| Android 14+ (API 34+) | FSI is treated as special app access. Status can be GRANTED or NOT_GRANTED. When not granted, Android SystemUI downgrades FSI to an expanded heads-up notification. |
PitelClient.openFullScreenIntentSettings(context) opens the special app access screen on Android 14+ when the host manifest declares the permission.
1. Host Android Manifest Configuration
Only an app that chooses FULLSCREEN mode should add this permission to its own app/src/main/AndroidManifest.xml:
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Required for full-screen incoming call lockscreen UI on Android 14+ -->
<uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" />
</manifest>
If your application is policy-sensitive (such as e-commerce, banking, or ride-hailing where receiving VoIP calls is not core functionality), do not declare this permission. Use IncomingCallMode.NOTIFICATION to ensure Google Play compliance.
2. Kotlin Initialization & Configuration
A. Using PitelClient.init
PitelClient.init(
context = context,
fcmToken = fcmToken,
mobileUsername = "YOUR_MOBILE_USER", // e.g., "agent01" (optional)
autoLaunchCallScreen = true,
uiConfig = uiConfig,
incomingCallMode = PitelClient.IncomingCallMode.FULLSCREEN // Or NOTIFICATION
)
B. Using PitelQuickStart.init
PitelQuickStart.init(
context = context,
mobileUsername = "YOUR_MOBILE_USER", // e.g., "agent01" (optional)
fcmToken = fcmToken,
autoLaunchCallScreen = true,
uiConfig = uiConfig,
incomingCallMode = PitelClient.IncomingCallMode.FULLSCREEN // Or NOTIFICATION
)
3. Checking Status & Requesting User Access (Android 14+)
Android 14 treats Full-Screen Intent as Special App Access. You can query its status programmatically:
val status = PitelClient.getFullScreenIntentStatus(context)
when (status) {
PitelClient.FullScreenIntentStatus.GRANTED -> {
// Fullscreen lockscreen incoming call is active
}
PitelClient.FullScreenIntentStatus.NOT_GRANTED -> {
// Declared in manifest, but disabled by user in Settings.
// Prompt user and open settings:
PitelClient.openFullScreenIntentSettings(context)
}
PitelClient.FullScreenIntentStatus.NOT_DECLARED -> {
// Not declared in host app Manifest
}
PitelClient.FullScreenIntentStatus.NOT_REQUIRED -> {
// Android < 14, automatically supported
}
PitelClient.FullScreenIntentStatus.UNSUPPORTED -> {
// Unsupported environment
}
}
PitelClient.openFullScreenIntentSettings(context) should only be invoked from a user-initiated UI action (e.g., tapping an "Enable Lockscreen Calls" button or dialog). Never call it automatically from background push handlers.
4. Expected Behavior by Device State
| Incoming Call Mode | FSI Permission Status | Screen Unlocked | Screen Locked / Off |
|---|---|---|---|
FULLSCREEN | GRANTED | Heads-Up Notification | Full-Screen Call Activity (PitelCallActivity) |
FULLSCREEN | NOT_GRANTED / NOT_DECLARED | Heads-Up Notification | Heads-Up Notification Fallback |
NOTIFICATION | Any | Heads-Up Notification | Lockscreen Notification Fallback |
5. Google Play Policy Verification Checklist
-
pitel-voip-sdklibrary manifest does not declareUSE_FULL_SCREEN_INTENT. - If your app does not qualify as a calling/alarm app, set
incomingCallMode = IncomingCallMode.NOTIFICATIONand do not declare FSI in your app manifest. - If your app is a calling app, declare
USE_FULL_SCREEN_INTENTinapp/src/main/AndroidManifest.xml. - On Android 14+, verify that when FSI is toggled OFF in system settings, incoming calls still ring and display heads-up notifications with Accept/Decline actions.