Skip to main content

Android Full-Screen Intent (FSI)

Pitel supports two incoming-call presentation modes:

  • notification: high-priority heads-up notification with Answer/Decline actions.
  • fullscreen: uses Android USE_FULL_SCREEN_INTENT when the host app declares it. If the permission is missing or unavailable, Android falls back to the notification presentation.

The SDK defaults to fullscreen for compatibility with the existing incoming-call UX. The SDK library no longer contributes USE_FULL_SCREEN_INTENT to the host application's merged manifest. The host app must opt in explicitly.

Android version behavior​

Android versionFSI status behavior
Android < 10notRequired; the special FSI access check does not apply.
Android 10–13A declared permission is available to the app; notification and lock-screen settings still apply.
Android 14+FSI is special app access. The status can be granted or notGranted, and Android may downgrade a denied FSI to heads-up notification.

openFullScreenIntentSettings() opens the special-access screen only on Android 14+ when the host manifest declares the permission. Otherwise it returns false.

React Native setup​

await PitelVoipClient.instance.login({
extension,
password,
domain,
proxy,
teamId,
incomingCallMode: 'fullscreen', // or 'notification'
});

For a policy-sensitive app such as a delivery or e-commerce app, use notification unless the product has a documented incoming-call use case and the Play Console submission supports it.

Host Android manifest​

Only an app that chooses fullscreen should add this permission to its own android/app/src/main/AndroidManifest.xml:

<uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" />

Do not add it for notification mode. Verify the final merged manifest and the uploaded AAB; a dependency can otherwise reintroduce a permission unexpectedly.

Custom Call Screen Mode (callScreenMode: 'custom')​

If using custom in-app call screens (callScreenMode: 'custom'), the full-screen intent targets your host app's MainActivity instead of PitelCallActivity. You must declare lockscreen flags on MainActivity so Android Keyguard permits waking up the screen and displaying over the lockscreen:

<activity
android:name=".MainActivity"
android:showOnLockScreen="true"
android:showWhenLocked="true"
android:turnScreenOn="true"
android:inheritShowWhenLocked="true"
... >
NOTE

On OEM skins such as Xiaomi (MIUI / HyperOS), users must also ensure that the app has permissions for "Show on Lock screen" and "Display pop-up windows while running in the background" enabled in App Settings.

Android 14 makes FSI a special app access. The host app owns the rationale and user journey:

const status = await PitelVoipClient.instance.getFullScreenIntentStatus();

// Render a rationale when status === 'notGranted'.
const onEnableFullscreen = async () => {
// This function is called only from the user's button press.
await PitelVoipClient.instance.openFullScreenIntentSettings();
};

The SDK never opens Settings from an FCM/background callback. The host app should call the helper from a foreground, user-initiated action and check the status again after the user returns.

There is no runtime permission popup. The end-user flow is: the host app checks the status, explains why an incoming call needs immediate attention, the user taps the host app's button, Android opens Manage full-screen intents, the user enables the app, and the host app checks the status again after returning.

The Settings label and location can vary by Android/OEM build. An APK installed directly may report granted by default on Android 14/15, so it may not show a consent screen. Google Play can apply a different initial state for an uploaded app.

Possible statuses:

StatusMeaning
grantedFSI is declared and available.
notGrantedFSI is declared but Android 14+ has not granted it.
notDeclaredThe host app did not declare the permission.
notRequiredAndroid version does not require the permission.
unsupportedThe current platform is not Android.

If the user declines, the SDK keeps the call notification visible and actionable. On Android 14+, a declared-but-denied FSI is downgraded by SystemUI to an expanded heads-up notification; it does not open the call Activity.

Expected behavior by device state:

FSI stateScreen unlockedScreen locked or off
grantedHeads-up notificationFull-screen call Activity
notGranted / missing declarationHeads-up notification with sound/vibration when allowedNotification/heads-up fallback; no guaranteed screen wake

The notification channel, lock-screen notification settings, Do Not Disturb, and OEM power-management settings can further affect sound, vibration, and visibility. The SDK cannot force a full-screen Activity or guarantee that a denied-FSI notification turns on the display.

Testing without Google Play​

An APK/AAB installed locally can test the SDK's notification/full-screen branches and the host app's rationale button. If the device exposes the FSI setting, turn it off and repeat the call test to verify the notification fallback. Google Play Internal testing is only needed to verify Play-mediated behavior such as revocation for apps whose core purpose is not calling or alarms; it is not required for basic Android FSI testing.

Expo​

Pass the mode to the config plugin when the host app wants FSI:

{
"expo": {
"plugins": [
["react-native-pitel-voip-v2", { "incomingCallMode": "fullscreen" }]
]
}
}

Without this plugin option, the plugin does not add the FSI permission. The runtime SDK setting and Expo manifest option should be kept consistent.

Google Play policy​

USE_FULL_SCREEN_INTENT is automatically enabled for apps whose core functionality is receiving calls or setting alarms. Other apps may only use it after explicit user consent, and the use must still be necessary, high priority, and consistent with the app's advertised functionality. User consent alone does not guarantee Play approval.

For a Play policy warning that instructs removal, publish a compliant AAB without the permission on every affected track. Check App Bundle Explorer and make sure the violating versions are inactive. Do not rely on the SDK dependency manifest to decide the host app's policy posture.

References:

Verification checklist​

  • The library AAR does not declare USE_FULL_SCREEN_INTENT.
  • A notification-mode host AAB does not contain the permission.
  • A fullscreen-mode host AAB declares the permission explicitly.
  • Android 14 permission granted: locked/off-screen incoming calls launch the call Activity.
  • Android 14 permission denied: incoming calls remain visible as heads-up notifications.
  • Missing permission: incoming calls still ring and expose Answer/Decline actions.
  • Notification mode: no full-screen Activity is attached, even when the host app declares FSI.
  • Test foreground, background, process-killed, locked, and screen-off states separately.
  • Background, killed-process, timeout, cancel, and outgoing-call flows remain functional.