Skip to main content

Android full-screen intent (FSI)

FSI controls whether an incoming call can open a full-screen activity over the lock screen. Android 14+ treats it as special app access, and Google Play limits eligibility. Check the current Google Play policy and Android 14 behavior changes before requesting it.

The SDK AAR does not declare USE_FULL_SCREEN_INTENT for the host app. The source example declares the permission because it selects fullscreen presentation. A partner app should request it only if its calling use case qualifies and it chooses IncomingCallMode.fullscreen. For notification presentation, set incomingCallMode: IncomingCallMode.notification and omit this permission.

Declare the permission in the host app​

In android/app/src/main/AndroidManifest.xml, add the permission as a direct child of <manifest> (not inside <application>):

<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" />
<application>
<!-- Existing app components -->
</application>
</manifest>

After building, inspect the merged manifest and confirm the permission is present only when your app needs it. Android 14+ may require the user to grant the related special app access in Settings.

Check status and guide the user​

Import package:flutter_pitel_voip_v2/flutter_pitel_voip_v2.dart and use the public client. FullScreenIntentStatus is exported by the public Dart entry point:

final status = await PitelVoipClient.instance.getFullScreenIntentStatus();
if (status == FullScreenIntentStatus.notDeclared) {
// Add USE_FULL_SCREEN_INTENT to the host manifest, then rebuild and reinstall.
} else if (status == FullScreenIntentStatus.notGranted) {
// Explain why fullscreen calling is useful, then invoke from a button tap.
final opened =
await PitelVoipClient.instance.openFullScreenIntentSettings();
if (!opened) {
// Keep notification presentation available if Settings could not be opened.
}
}

Possible values are granted, notGranted, notDeclared, notRequired, and unsupported. notDeclared means the host manifest lacks the permission; add it as shown above and rebuild/reinstall. notGranted means the permission is declared but special access is unavailable; offer Settings only after a user action. openFullScreenIntentSettings() returns false when the OS cannot open that page or the permission is not declared, so handle that result. Do not redirect users from a background push callback. Re-check the status when the app resumes because the user may have changed access in Settings. notRequired means the OS does not require that special access, such as on older Android versions; iOS also reports a non-Android status. unsupported means the platform did not return a recognized status.

When fullscreen access is unavailable, the SDK may present a notification instead, depending on Android version, app configuration, and device state. Verify the actual behavior on supported devices. See Android setup in the primary integration guide.

Test checklist​

  • Confirm incomingCallMode matches the presentation your app selected.
  • If using fullscreen, confirm the app qualifies under current Play policy, the host manifest declares the permission, and Android Settings grants access where required.
  • Test with the screen unlocked and locked on physical Android devices, with FSI granted and denied.
  • Confirm notification fallback still lets the user answer or decline when fullscreen access is unavailable.