Description of the bug
I integrated Android AppFunctions in a third-party app and verified that the platform indexes and enables all functions. However, Gemini does not discover or execute these functions and logs metadata resolution failures.
Environment
- Device: Samsung Galaxy A34 (
SM-A346B)
- Android: 16 (
SDK 36)
- Build tools: AGP
8.9.1, Gradle 8.14.3
- Language/tooling: Kotlin
2.1.10, KSP 2.1.10-1.0.31
- Libraries:
androidx.appfunctions:appfunctions:1.0.0-alpha07
androidx.appfunctions:appfunctions-service:1.0.0-alpha07
androidx.appfunctions:appfunctions-compiler:1.0.0-alpha07
What was validated already
- KSP aggregation is enabled:
appfunctions:aggregateAppFunctions=true
- APK includes required assets:
assets/app_functions.xml
assets/app_functions_v2.xml
assets/app_functions_schema.xsd
- Manifest contains merged AppFunction services/properties.
- Device has
com.android.extensions.appfunctions library.
dumpsys app_function shows all six functions with runtime metadata and enabled: [1].
- App-side diagnostics report
6/6 functions indexed.
Minimal reproduction
- Build and install app on Android 16 device.
- Launch app and wait for AppFunction registration/indexing.
- Confirm indexed state via
dumpsys app_function and app logs.
- Attempt discovery/execution through Gemini.
Actual vs expected behavior
Actual behavior
- Gemini does not discover/execute the custom app functions.
- Logs repeatedly show:
D/AppFunctions: Unable to resolve AppFunctionMetadata.
Expected behavior
- Once functions are indexed and enabled by the Android AppFunctions platform, Gemini should discover and be able to execute them, or provide a clear compatibility reason if custom schemas are unsupported.
Any other information you'd like to share?
- This may be a support/compatibility question rather than a pure runtime bug.
- If custom app-defined schemas are not currently supported in Gemini, please confirm current limitations and any roadmap for support.
Description of the bug
I integrated Android AppFunctions in a third-party app and verified that the platform indexes and enables all functions. However, Gemini does not discover or execute these functions and logs metadata resolution failures.
Environment
SM-A346B)SDK 36)8.9.1, Gradle8.14.32.1.10, KSP2.1.10-1.0.31androidx.appfunctions:appfunctions:1.0.0-alpha07androidx.appfunctions:appfunctions-service:1.0.0-alpha07androidx.appfunctions:appfunctions-compiler:1.0.0-alpha07What was validated already
appfunctions:aggregateAppFunctions=trueassets/app_functions.xmlassets/app_functions_v2.xmlassets/app_functions_schema.xsdcom.android.extensions.appfunctionslibrary.dumpsys app_functionshows all six functions with runtime metadata andenabled: [1].6/6 functions indexed.Minimal reproduction
dumpsys app_functionand app logs.Actual vs expected behavior
Actual behavior
D/AppFunctions: Unable to resolve AppFunctionMetadata.Expected behavior
Any other information you'd like to share?