Google Play Permissions
The SDK contributes a handful of permissions to your merged manifest, some of which Google Play gates behind a declaration form or acceptable-use consent. This guide lists them, shows how to strip the ones you don't use, and explains what to file when you keep them.
Overview
The SDK declares its permissions in its library manifest (AndroidManifest.xml inside the SDK). Every app that includes the SDK inherits them via manifest merger. A few are permissions that Google Play gates behind a declaration form or acceptable-use consent — when present in your merged manifest, Play Console asks you to justify them (or rejects the release if your app category isn't eligible).
You don't fork or edit the SDK
If your build doesn't use the feature behind such a permission, strip it from the merged manifest with a tools:node="remove" override in your app's AndroidManifest.xml. The override must live in the consumer app manifest — it has higher merge priority than the SDK library manifest.
Play-gated Permissions
These four permissions trigger a Google Play declaration, consent, or eligibility check when they appear in your merged manifest. Keep the location permissions; the others can be removed if you accept the effect in the last column.
| Permission | Play gate | SDK feature behind it | Safe to remove when… |
|---|---|---|---|
| SCHEDULE_EXACT_ALARM | Exact-alarm declaration | Fires the scheduled reconciliation at the exact time set in the terminal configuration (the SDK schedules it itself) | You accept the scheduled reconciliation firing up to ~1 h late (the SDK falls back to an inexact alarm) |
| REQUEST_IGNORE_BATTERY_OPTIMIZATIONS | Restricted — only some app categories may ship it | One-tap "ignore battery optimizations" dialog used by the battery-reliability helper | You publish on Play and aren't in an eligible category. Without it the battery helpers open nothing; send the user to the battery optimization list yourself (see What Breaks) |
| ACCESS_FINE_LOCATION / ACCESS_COARSE_LOCATION | Location declaration / consent | Card payments need ACCESS_FINE_LOCATION; the device location is also sent with login and terminal requests | Never. Without ACCESS_FINE_LOCATION every card payment fails with "Location permission required to pay" |
| FOREGROUND_SERVICE_DATA_SYNC | Foreground-service-type declaration (required by Play since 2024) | On API < 31, lets the reconciliation worker run as a short dataSync foreground service (expedited fallback) | Your app runs only on API 31+ (minSdk 31; expedited jobs don't use a foreground service there), or you accept that on Android 10 and 11 reconciliation runs as ordinary background work (it still completes) |
Permissions to Leave Alone
Not gated — keep these
INTERNET, ACCESS_NETWORK_STATE, NFC, POST_NOTIFICATIONS (runtime prompt, no declaration), RECEIVE_BOOT_COMPLETED, and FOREGROUND_SERVICE (base) are not Play-gated. The SDK manifest does not declare the Play-restricted variants QUERY_ALL_PACKAGES, USE_EXACT_ALARM, or USE_FULL_SCREEN_INTENT. Libraries the SDK uses can add more permissions (for example CAMERA from its QR-code scanner library), so check your merged manifest. It also lists ACCESS_WIFI_STATE, WAKE_LOCK, BIND_JOB_SERVICE and android.permission.DUMP; none needs a Play declaration, and DUMP is a system-only permission that is never granted to an app.
Removing One Permission
In your app module's src/main/AndroidManifest.xml, declare the tools namespace on <manifest>, then add a matching <uses-permission> with tools:node="remove". The android:name must match exactly; the merger deletes the inherited node.
Loading...Verify the merged manifest
Confirm the permission is gone from the merged output before you ship.
Loading...Remove Optional Gated Permissions
Drop this into your app manifest to strip the permissions you can remove. It keeps ACCESS_FINE_LOCATION and ACCESS_COARSE_LOCATION, because every card payment needs location. Delete the lines whose feature you want to keep.
Loading...What Breaks When You Remove Each
SCHEDULE_EXACT_ALARM
canScheduleExactAlarms() is false on Android 12 and later; reconciliation falls back to setAndAllowWhileIdle(...) and fires within a ~1-hour window instead of on the second. It still runs. Don't call EdfaPayPlugin.Utils.requestExactAlarmPermission(...) after removal; it would still show its dialog and send the user to a settings screen where the permission cannot be granted.
REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
The one-tap dialog is unavailable, and requestBatteryUnrestricted / openBatteryUnrestrictedSettings open nothing. To ask for the exemption, open Settings.ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS from your app (the system list where the user picks your app and chooses Don't optimize), then check isBatteryUnrestricted when your activity resumes. The autostart helper is not affected. No functional loss for card payment.
ACCESS_FINE/COARSE_LOCATION
Do not remove. Every card payment checks ACCESS_FINE_LOCATION; without it the payment does not start and onError receives "Location permission required to pay". Once removed from the manifest, the permission can never be granted.
FOREGROUND_SERVICE_DATA_SYNC
On API < 31 the reconciliation worker can no longer run its short dataSync foreground fallback for expedited execution; WorkManager runs it as ordinary (non-expedited) background work. On API 31+ there is no effect. Reconciliation still completes.
Keeping Them — Play Declarations
If you do need a feature, keep the permission and satisfy Google Play's requirements. Each gated permission needs a different combination of a Play Console declaration form, a runtime user consent, and a privacy-policy / Data safety disclosure. Where the form asks for a video, capture the actual in-app flow. Declarations are re-reviewed on each release that keeps the permission.
SCHEDULE_EXACT_ALARM
Play Console → App content → Permissions declaration → "Exact alarm". Choose the "Tasks the app has been asked to perform at an exact time" use case.
Runtime consent
Android 14+ has this denied by default. Prompt with EdfaPayPlugin.Utils.requestExactAlarmPermission(activity) { granted -> … } (shows a rationale + deep-links to the system "Alarms & reminders" screen). Re-check canScheduleExactAlarms(context) in onResume.
Data safety
None — no user data is collected by the permission itself.
Justification (paste)
Performs end-of-day payment reconciliation against our backend at the exact time configured by the merchant terminal. Inexact scheduling would fire the reconciliation up to an hour late, producing incorrect daily totals and reconciliation reports.
FOREGROUND_SERVICE_DATA_SYNC
Play Console → App content → Foreground service permissions declaration. Declare the dataSync type. Only relevant if you support API < 31; if your app's minSdk is 31 or higher you can remove it and skip this declaration.
Justification (paste)
A short (~10s) dataSync foreground task runs the merchant's scheduled end-of-day reconciliation sync with our backend on Android 11 and below, where WorkManager executes expedited work as a foreground service. It is user-visible via an ongoing notification and is not used for long-running or continuous work.
ACCESS_FINE_LOCATION / ACCESS_COARSE_LOCATION
Play Console → App content → Permissions declaration → "Location". Declare foreground (approximate/precise) use — the SDK does NOT request background location.
Runtime consent (required)
Request at runtime before the first payment — EdfaPayPlugin.Utils.requestLocationPermission(activity) { granted -> … } in Kotlin (in Java through EdfaPayPluginJ.getUtils()), or your app's own permission flow in Flutter and React Native. If the user denies it, card payments fail with "Location permission required to pay".
Justification + mandatory disclosure
Justification: "Captures the merchant device's location at login and at transaction time to attach geolocation to payment records for fraud/risk screening (an anti-fraud requirement of our acquirer). Location is used in the foreground only, tied to an active payment session." Location is a sensitive data type — a linked privacy policy and a Data safety disclosure (Location → Approximate/Precise) are mandatory when this permission ships.
REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
No declaration form — Play evaluates it against the acceptable-use policy. It's only permitted for a narrow set of use cases (e.g. companion-device/always-on apps); a payment app is generally not eligible, and shipping it can get the release rejected.
Recommendation
For Play distribution, remove it and open Settings.ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS from your app instead (see What Breaks). Keep it only for enterprise / sideloaded builds. If you believe your app qualifies, be ready to justify it in the review-appeal flow; there is no pre-submission form.
Quick Matrix
| Permission | Console declaration | Runtime consent | Privacy policy / Data safety |
|---|---|---|---|
| SCHEDULE_EXACT_ALARM | Exact-alarm declaration | Yes (Android 14+) | — |
| FOREGROUND_SERVICE_DATA_SYNC | Foreground-service (dataSync) | — | — |
| ACCESS_FINE/COARSE_LOCATION | Location declaration | Yes | Yes (Location) |
| REQUEST_IGNORE_BATTERY_OPTIMIZATIONS | None (policy-evaluated) | System dialog | — |
On this page
Downloads
Coming SoonSample apps, release bundles, and more content will be available here soon.