Skip to main content

🛡️ 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 declares USE_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 VersionFSI Status Behavior
Android < 10NOT_REQUIRED: Special FSI permission does not apply.
Android 10–13A 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>
IMPORTANT

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
}
}
NOTE

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 ModeFSI Permission StatusScreen UnlockedScreen Locked / Off
FULLSCREENGRANTEDHeads-Up NotificationFull-Screen Call Activity (PitelCallActivity)
FULLSCREENNOT_GRANTED / NOT_DECLAREDHeads-Up NotificationHeads-Up Notification Fallback
NOTIFICATIONAnyHeads-Up NotificationLockscreen Notification Fallback

5. Google Play Policy Verification Checklist​

  • pitel-voip-sdk library manifest does not declare USE_FULL_SCREEN_INTENT.
  • If your app does not qualify as a calling/alarm app, set incomingCallMode = IncomingCallMode.NOTIFICATION and do not declare FSI in your app manifest.
  • If your app is a calling app, declare USE_FULL_SCREEN_INTENT in app/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.