reis-mobile 0.3.6 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (463) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +24 -0
  4. package/README.md +175 -168
  5. package/THIRD_PARTY_NOTICES.md +224 -4
  6. package/agents/android-architect.md +89 -0
  7. package/agents/android-performance-engineer.md +92 -0
  8. package/agents/android-test-engineer.md +97 -0
  9. package/agents/flutter-test-engineer.md +2 -0
  10. package/agents/ios-architect.md +93 -0
  11. package/agents/ios-performance-engineer.md +92 -0
  12. package/agents/ios-test-engineer.md +95 -0
  13. package/agents/lead-mobile.md +10 -1
  14. package/agents/mobile-staff-engineer.md +1 -1
  15. package/agents/rn-architect.md +94 -0
  16. package/agents/rn-performance-engineer.md +92 -0
  17. package/agents/rn-test-engineer.md +98 -0
  18. package/bin/reis-mobile.mjs +59 -17
  19. package/commands/debate.md +10 -1
  20. package/commands/debug.md +60 -0
  21. package/commands/reis-mobile.md +7 -2
  22. package/core/config/project.mjs +59 -0
  23. package/core/registry/frontmatter.mjs +15 -4
  24. package/core/registry/registry.mjs +21 -1
  25. package/core/router/intents.mjs +2 -0
  26. package/core/router/router.mjs +10 -5
  27. package/package.json +1 -1
  28. package/skills/android-adaptive/SKILL.md +304 -0
  29. package/skills/android-adaptive/references/android/develop/ui/compose/layouts/adaptive/flexbox/container-behavior.md +112 -0
  30. package/skills/android-adaptive/references/android/develop/ui/compose/layouts/adaptive/flexbox/get-started.md +69 -0
  31. package/skills/android-adaptive/references/android/develop/ui/compose/layouts/adaptive/flexbox/index.md +81 -0
  32. package/skills/android-adaptive/references/android/develop/ui/compose/layouts/adaptive/flexbox/item-behavior.md +170 -0
  33. package/skills/android-adaptive/references/android/develop/ui/compose/layouts/adaptive/grid/container-properties.md +415 -0
  34. package/skills/android-adaptive/references/android/develop/ui/compose/layouts/adaptive/grid/get-started.md +51 -0
  35. package/skills/android-adaptive/references/android/develop/ui/compose/layouts/adaptive/grid/index.md +73 -0
  36. package/skills/android-adaptive/references/android/develop/ui/compose/layouts/adaptive/grid/item-properties.md +170 -0
  37. package/skills/android-adaptive/references/android/develop/ui/compose/layouts/adaptive/mediaquery/index.md +333 -0
  38. package/skills/android-adaptive/references/android/develop/ui/compose/tooling/debug.md +114 -0
  39. package/skills/android-adaptive/references/android/guide/navigation/navigation-3/recipes/material-listdetail.md +141 -0
  40. package/skills/android-agp-9-upgrade/SKILL.md +106 -0
  41. package/skills/android-agp-9-upgrade/references/android/build/migrate-to-built-in-kotlin.md +416 -0
  42. package/skills/android-agp-9-upgrade/references/android/build/releases/agp-9-0-0-release-notes.md +554 -0
  43. package/skills/android-agp-9-upgrade/references/buildconfig.md +54 -0
  44. package/skills/android-agp-9-upgrade/references/ksp-kapt.md +39 -0
  45. package/skills/android-agp-9-upgrade/references/paparazzi-gradle-9.md +30 -0
  46. package/skills/android-agp-9-upgrade/references/recipes.md +62 -0
  47. package/skills/android-appfunctions/SKILL.md +74 -0
  48. package/skills/android-appfunctions/references/adb-interaction-testing.md +95 -0
  49. package/skills/android-appfunctions/references/context.md +26 -0
  50. package/skills/android-appfunctions/references/feature-discovery-analysis.md +71 -0
  51. package/skills/android-appfunctions/references/implementation-configuration.md +282 -0
  52. package/skills/android-appfunctions/references/kdoc-refinement-optimization.md +75 -0
  53. package/skills/android-appfunctions/references/migrate-to-service-entry-point.md +226 -0
  54. package/skills/android-camerax/SKILL.md +135 -0
  55. package/skills/android-camerax/references/camera1-to-camerax.md +198 -0
  56. package/skills/android-camerax/references/camera2-to-camerax.md +193 -0
  57. package/skills/android-camerax/references/expert-blueprints.md +58 -0
  58. package/skills/android-camerax/references/foldables.md +83 -0
  59. package/skills/android-camerax/references/immutability.md +60 -0
  60. package/skills/android-camerax/references/low-light.md +124 -0
  61. package/skills/android-camerax/references/mlkit-spatial.md +75 -0
  62. package/skills/android-camerax/references/modern-apis.md +42 -0
  63. package/skills/android-camerax/references/testing.md +69 -0
  64. package/skills/android-camerax/references/thermals.md +85 -0
  65. package/skills/android-camerax/references/wear-os.md +76 -0
  66. package/skills/android-camerax/references/xr.md +54 -0
  67. package/skills/android-cli/SKILL.md +474 -0
  68. package/skills/android-cli/references/interact.md +113 -0
  69. package/skills/android-cli/references/journeys.md +120 -0
  70. package/skills/android-code-review/SKILL.md +58 -0
  71. package/skills/android-display-glasses-with-jetpack-compose-glimmer/SKILL.md +340 -0
  72. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/android/design/ui/ai-glasses/guides/interaction/inputs.md +67 -0
  73. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/android/develop/xr/jetpack-xr-sdk/access-hardware-projected-context.md +388 -0
  74. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/android/develop/xr/jetpack-xr-sdk/jetpack-compose-glimmer/buttons.md +139 -0
  75. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/android/develop/xr/jetpack-xr-sdk/jetpack-compose-glimmer/cards.md +148 -0
  76. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/android/develop/xr/jetpack-xr-sdk/jetpack-compose-glimmer/focus.md +107 -0
  77. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/android/develop/xr/jetpack-xr-sdk/jetpack-compose-glimmer/icons.md +90 -0
  78. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/android/develop/xr/jetpack-xr-sdk/jetpack-compose-glimmer/text.md +69 -0
  79. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/android/develop/xr/jetpack-xr-sdk/jetpack-compose-glimmer/title-chips.md +82 -0
  80. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/android/develop/xr/jetpack-xr-sdk/request-hardware-permissions.md +213 -0
  81. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/button-samples-source.md +176 -0
  82. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/button-source.md +203 -0
  83. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/card-samples-source.md +296 -0
  84. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/card-source.md +515 -0
  85. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/deptheffect-source.md +224 -0
  86. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/deptheffectlevels-source.md +105 -0
  87. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/glimmersansflextypography-source.md +270 -0
  88. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/glimmertheme-source.md +182 -0
  89. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/icon-source.md +388 -0
  90. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/iconbutton-source.md +126 -0
  91. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/iconsizes-source.md +78 -0
  92. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/list-source.md +27 -0
  93. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/listitem-source.md +272 -0
  94. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/liststate-source.md +427 -0
  95. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/material-hct-source.md +217 -0
  96. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/projectedcontext-source.md +265 -0
  97. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/stack-source.md +368 -0
  98. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/stackitemscope-source.md +440 -0
  99. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/stackstate-source.md +325 -0
  100. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/surface-source.md +1211 -0
  101. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/titlechip-samples-source.md +101 -0
  102. package/skills/android-display-glasses-with-jetpack-compose-glimmer/references/titlechip-source.md +131 -0
  103. package/skills/android-edge-to-edge/SKILL.md +429 -0
  104. package/skills/android-engage-sdk-integration/SKILL.md +130 -0
  105. package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/faq.md +439 -0
  106. package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/food.md +1149 -0
  107. package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/healthandfitness.md +1055 -0
  108. package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/listen.md +1050 -0
  109. package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/otherverticals.md +1301 -0
  110. package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/read.md +910 -0
  111. package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/shopping.md +1224 -0
  112. package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/social.md +719 -0
  113. package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/travel.md +1413 -0
  114. package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/tv/continue-watching/index.md +19 -0
  115. package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/tv/entitlements.md +353 -0
  116. package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/tv/getting-started.md +202 -0
  117. package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/tv/recommendations.md +471 -0
  118. package/skills/android-engage-sdk-integration/references/android/guide/playcore/engage/watch.md +1081 -0
  119. package/skills/android-engage-sdk-integration/references/clusters.md +154 -0
  120. package/skills/android-engage-sdk-integration/references/common.md +519 -0
  121. package/skills/android-engage-sdk-integration/references/patterns.md +527 -0
  122. package/skills/android-engage-sdk-integration/references/requests.md +260 -0
  123. package/skills/android-engage-sdk-integration/references/schemas/food.md +509 -0
  124. package/skills/android-engage-sdk-integration/references/schemas/listen.md +842 -0
  125. package/skills/android-engage-sdk-integration/references/schemas/other.md +220 -0
  126. package/skills/android-engage-sdk-integration/references/schemas/read.md +412 -0
  127. package/skills/android-engage-sdk-integration/references/schemas/shopping.md +357 -0
  128. package/skills/android-engage-sdk-integration/references/schemas/social.md +228 -0
  129. package/skills/android-engage-sdk-integration/references/schemas/travel.md +923 -0
  130. package/skills/android-engage-sdk-integration/references/schemas/tv.md +1226 -0
  131. package/skills/android-engage-sdk-integration/references/schemas/watch.md +1137 -0
  132. package/skills/android-engage-sdk-integration/references/troubleshooting.md +39 -0
  133. package/skills/android-gradle-build-debug/SKILL.md +71 -0
  134. package/skills/android-intent-security/SKILL.md +550 -0
  135. package/skills/android-leanback-to-compose-tv-migration/SKILL.md +743 -0
  136. package/skills/android-leanback-to-compose-tv-migration/references/android/training/tv/get-started/navigation.md +372 -0
  137. package/skills/android-leanback-to-compose-tv-migration/references/android/training/tv/playback/compose/browse.md +243 -0
  138. package/skills/android-leanback-to-compose-tv-migration/references/android/training/tv/playback/compose/index.md +153 -0
  139. package/skills/android-media3-cast-integration/SKILL.md +236 -0
  140. package/skills/android-media3-cast-integration/references/android/media/media3/cast/create-castplayer.md +390 -0
  141. package/skills/android-media3-cast-integration/references/android/media/media3/cast/customize-castoptions.md +93 -0
  142. package/skills/android-media3-cast-integration/references/android/media/media3/cast/index.md +21 -0
  143. package/skills/android-migrate-xml-views-to-jetpack-compose/SKILL.md +127 -0
  144. package/skills/android-migrate-xml-views-to-jetpack-compose/references/analysis-of-the-project-and-layout.md +42 -0
  145. package/skills/android-migrate-xml-views-to-jetpack-compose/references/android/develop/ui/compose/designsystems/migrate-xml-theme-to-compose.md +171 -0
  146. package/skills/android-migrate-xml-views-to-jetpack-compose/references/android/develop/ui/compose/migrate/interoperability-apis/compose-in-views.md +299 -0
  147. package/skills/android-migrate-xml-views-to-jetpack-compose/references/android/develop/ui/compose/migrate/interoperability-apis/views-in-compose.md +286 -0
  148. package/skills/android-migrate-xml-views-to-jetpack-compose/references/android/develop/ui/compose/setup-compose-dependencies-and-compiler.md +197 -0
  149. package/skills/android-migrate-xml-views-to-jetpack-compose/references/identify-optimal-xml-candidate.md +31 -0
  150. package/skills/android-migrate-xml-views-to-jetpack-compose/references/xml-layout-migration.md +86 -0
  151. package/skills/android-ml-kit-genai-prompt-api/SKILL.md +124 -0
  152. package/skills/android-ml-kit-genai-prompt-api/references/get-started.md +272 -0
  153. package/skills/android-ml-kit-genai-prompt-api/references/prefix-caching.md +146 -0
  154. package/skills/android-ml-kit-genai-prompt-api/references/prompt-design.md +55 -0
  155. package/skills/android-ml-kit-genai-prompt-api/references/prompt-optimization.md +74 -0
  156. package/skills/android-ml-kit-genai-prompt-api/references/structured-output.md +219 -0
  157. package/skills/android-ml-kit-genai-prompt-api/references/system-instructions.md +71 -0
  158. package/skills/android-navigation-3/SKILL.md +122 -0
  159. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/index.md +51 -0
  160. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/migration-guide.md +670 -0
  161. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/animations.md +147 -0
  162. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/basic.md +89 -0
  163. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/basicdsl.md +85 -0
  164. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/basicsaveable.md +90 -0
  165. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/bottomsheet.md +195 -0
  166. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/common-ui.md +200 -0
  167. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/conditional-transitions.md +182 -0
  168. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/conditional.md +230 -0
  169. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/deeplinks-custommatcher.md +176 -0
  170. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/deeplinks-staticuri.md +140 -0
  171. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/deeplinks-syntheticbackstack.md +184 -0
  172. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/dialog.md +107 -0
  173. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/lifecycle-owner.md +185 -0
  174. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/material-listdetail.md +141 -0
  175. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/material-supportingpane.md +145 -0
  176. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/modular-hilt.md +283 -0
  177. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/modular-koin.md +287 -0
  178. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/multiple-backstacks.md +468 -0
  179. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/passingarguments.md +371 -0
  180. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/results-event.md +273 -0
  181. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/results-state.md +266 -0
  182. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/scenes-listdetail.md +435 -0
  183. package/skills/android-navigation-3/references/android/guide/navigation/navigation-3/recipes/scenes-twopane.md +244 -0
  184. package/skills/android-navigation-3/references/android/guide/navigation/type-safe-destinations.md +129 -0
  185. package/skills/android-navigation-event/SKILL.md +312 -0
  186. package/skills/android-navigation-event/references/android/guide/navigation/navigation-event/dispatcher.md +134 -0
  187. package/skills/android-navigation-event/references/android/guide/navigation/navigation-event/handle-back.md +217 -0
  188. package/skills/android-navigation-event/references/android/guide/navigation/navigation-event/index.md +83 -0
  189. package/skills/android-navigation-event/references/android/guide/navigation/navigation-event/setup.md +32 -0
  190. package/skills/android-play-billing-library-version-upgrade/SKILL.md +96 -0
  191. package/skills/android-play-billing-library-version-upgrade/references/android/google/play/billing/release-notes.md +1240 -0
  192. package/skills/android-play-billing-library-version-upgrade/references/migration-logic.md +78 -0
  193. package/skills/android-play-billing-library-version-upgrade/references/version-checklist.md +54 -0
  194. package/skills/android-play-policy-insights/SKILL.md +172 -0
  195. package/skills/android-play-policy-insights/resources/common_mandates.md +100 -0
  196. package/skills/android-play-policy-insights/resources/compliance_report_template.md +59 -0
  197. package/skills/android-play-policy-insights/resources/critic.md +86 -0
  198. package/skills/android-play-policy-insights/resources/goal_data_safety.md +212 -0
  199. package/skills/android-play-policy-insights/resources/goal_permissions_and_apis.md +459 -0
  200. package/skills/android-play-policy-insights/resources/goal_user_account.md +106 -0
  201. package/skills/android-play-policy-insights/resources/policies.json +321 -0
  202. package/skills/android-play-policy-insights/resources/scanner_config.json +843 -0
  203. package/skills/android-play-policy-insights/scripts/generate_report.py +860 -0
  204. package/skills/android-play-policy-insights/scripts/orchestrator.py +1313 -0
  205. package/skills/android-play-policy-insights/scripts/play_store_scraper.py +410 -0
  206. package/skills/android-play-policy-insights/scripts/scanner.py +261 -0
  207. package/skills/android-play-policy-insights/scripts/template_engine.py +243 -0
  208. package/skills/android-profiler/SKILL.md +60 -0
  209. package/skills/android-profiler/analysis/analysis_orchestrator.md +32 -0
  210. package/skills/android-profiler/analysis/workflows/perfetto-sql/perfetto_sql.md +28 -0
  211. package/skills/android-profiler/analysis/workflows/perfetto-trace-analysis/perfetto_trace_analysis.md +121 -0
  212. package/skills/android-profiler/analysis/workflows/perfetto-trace-analysis/references/guiding_principles.md +51 -0
  213. package/skills/android-profiler/analysis/workflows/perfetto-trace-analysis/references/hints/domain_hints_template.md +7 -0
  214. package/skills/android-profiler/analysis/workflows/perfetto-trace-analysis/references/hints/subsystems/hints_cpu.md +56 -0
  215. package/skills/android-profiler/analysis/workflows/perfetto-trace-analysis/references/hints/subsystems/hints_graphics.md +51 -0
  216. package/skills/android-profiler/analysis/workflows/perfetto-trace-analysis/references/hints/subsystems/hints_io.md +46 -0
  217. package/skills/android-profiler/analysis/workflows/perfetto-trace-analysis/references/hints/subsystems/hints_ipc.md +41 -0
  218. package/skills/android-profiler/analysis/workflows/perfetto-trace-analysis/references/hints/subsystems/hints_memory.md +55 -0
  219. package/skills/android-profiler/analysis/workflows/perfetto-trace-analysis/references/hints/subsystems/hints_power.md +33 -0
  220. package/skills/android-profiler/analysis/workflows/perfetto-trace-analysis/references/per_candidate_analysis.md +172 -0
  221. package/skills/android-profiler/analysis/workflows/perfetto-trace-analysis/references/triage.md +94 -0
  222. package/skills/android-profiler/recording/recording_orchestrator.md +36 -0
  223. package/skills/android-profiler/recording/workflows/perfetto-trace-recording/perfetto_trace_recording.md +148 -0
  224. package/skills/android-profiler/recording/workflows/perfetto-trace-recording/references/example-configs/app_jank.pftxt +43 -0
  225. package/skills/android-profiler/recording/workflows/perfetto-trace-recording/references/example-configs/cpu_profile.pftxt +35 -0
  226. package/skills/android-profiler/recording/workflows/perfetto-trace-recording/references/example-configs/java_heap_dump.pftxt +21 -0
  227. package/skills/android-profiler/recording/workflows/perfetto-trace-recording/references/example-configs/long_background.pftxt +37 -0
  228. package/skills/android-profiler/recording/workflows/perfetto-trace-recording/references/example-configs/memory_counters.pftxt +45 -0
  229. package/skills/android-profiler/recording/workflows/perfetto-trace-recording/references/example-configs/native_heap.pftxt +21 -0
  230. package/skills/android-profiler/recording/workflows/perfetto-trace-recording/references/example-configs/sched_cpu.pftxt +33 -0
  231. package/skills/android-profiler/recording/workflows/perfetto-trace-recording/references/trace_config_reference.md +102 -0
  232. package/skills/android-profiler/references/env_setup.md +15 -0
  233. package/skills/android-profiler/references/perfetto/setup.md +29 -0
  234. package/skills/android-profiler/references/perfetto/sql.md +327 -0
  235. package/skills/android-r8-analyzer/SKILL.md +72 -0
  236. package/skills/android-r8-analyzer/references/CONFIGURATION-ANALYZER.md +287 -0
  237. package/skills/android-r8-analyzer/references/CONFIGURATION.md +44 -0
  238. package/skills/android-r8-analyzer/references/KEEP-RULES-IMPACT-HIERARCHY.md +83 -0
  239. package/skills/android-r8-analyzer/references/REDUNDANT-RULES.md +222 -0
  240. package/skills/android-r8-analyzer/references/REFLECTION-GUIDE.md +139 -0
  241. package/skills/android-r8-analyzer/references/REPORT_FORMAT.md +51 -0
  242. package/skills/android-r8-analyzer/references/android/topic/performance/app-optimization/enable-app-optimization.md +252 -0
  243. package/skills/android-r8-analyzer/references/android/training/testing/other-components/ui-automator.md +312 -0
  244. package/skills/android-restore-credentials/SKILL.md +359 -0
  245. package/skills/android-restore-credentials/references/android/guide/topics/manifest/application-element.md +832 -0
  246. package/skills/android-restore-credentials/references/android/identity/passkeys/create-passkeys.md +327 -0
  247. package/skills/android-restore-credentials/references/android/identity/passkeys/sign-in-with-passkeys.md +219 -0
  248. package/skills/android-styles/SKILL.md +229 -0
  249. package/skills/android-styles/references/android/develop/ui/compose/designsystems/custom.md +459 -0
  250. package/skills/android-styles/references/android/develop/ui/compose/styles/fundamentals.md +421 -0
  251. package/skills/android-styles/references/android/develop/ui/compose/styles/state-animations.md +461 -0
  252. package/skills/android-styles/references/android/develop/ui/compose/styles/styles-vs-modifiers.md +48 -0
  253. package/skills/android-styles/references/android/develop/ui/compose/styles/theming.md +269 -0
  254. package/skills/android-verified-email/SKILL.md +432 -0
  255. package/skills/android-verified-email/references/android/identity/credential-manager/index.md +67 -0
  256. package/skills/android-verified-email/references/android/identity/digital-credentials/credential-verifier.md +166 -0
  257. package/skills/android-verified-email/references/android/identity/digital-credentials/email-verification-implementation.md +313 -0
  258. package/skills/android-verified-email/references/android/identity/digital-credentials/email-verification.md +158 -0
  259. package/skills/android-verified-email/references/android/identity/digital-credentials/index.md +112 -0
  260. package/skills/android-verified-email/references/android/identity/passkeys/create-passkeys.md +327 -0
  261. package/skills/android-verified-email/references/android/identity/sign-in/credential-manager-webview.md +84 -0
  262. package/skills/android-wear-compose-m3/SKILL.md +365 -0
  263. package/skills/android-wear-compose-m3/references/android/training/wearables/compose/migrate-to-material3.md +677 -0
  264. package/skills/android-wear-compose-m3/references/foundation/AmbientModeSample.kt.md +123 -0
  265. package/skills/android-wear-compose-m3/references/foundation/AmbientModeSample.kt.md.txt +123 -0
  266. package/skills/android-wear-compose-m3/references/foundation/CurvedWorldSample.kt.md +430 -0
  267. package/skills/android-wear-compose-m3/references/foundation/CurvedWorldSample.kt.md.txt +430 -0
  268. package/skills/android-wear-compose-m3/references/foundation/ExpandableSample.kt.md +99 -0
  269. package/skills/android-wear-compose-m3/references/foundation/ExpandableSample.kt.md.txt +99 -0
  270. package/skills/android-wear-compose-m3/references/foundation/HierarchicalFocusSample.kt.md +141 -0
  271. package/skills/android-wear-compose-m3/references/foundation/HierarchicalFocusSample.kt.md.txt +141 -0
  272. package/skills/android-wear-compose-m3/references/foundation/PagerSamples.kt.md +56 -0
  273. package/skills/android-wear-compose-m3/references/foundation/PagerSamples.kt.md.txt +56 -0
  274. package/skills/android-wear-compose-m3/references/foundation/RotarySamples.kt.md +153 -0
  275. package/skills/android-wear-compose-m3/references/foundation/RotarySamples.kt.md.txt +153 -0
  276. package/skills/android-wear-compose-m3/references/foundation/ScalingLazyColumnSample.kt.md +131 -0
  277. package/skills/android-wear-compose-m3/references/foundation/ScalingLazyColumnSample.kt.md.txt +131 -0
  278. package/skills/android-wear-compose-m3/references/foundation/SwipeToDismissBoxSample.kt.md +169 -0
  279. package/skills/android-wear-compose-m3/references/foundation/SwipeToDismissBoxSample.kt.md.txt +169 -0
  280. package/skills/android-wear-compose-m3/references/foundation/SwipeToRevealSample.kt.md +282 -0
  281. package/skills/android-wear-compose-m3/references/foundation/SwipeToRevealSample.kt.md.txt +282 -0
  282. package/skills/android-wear-compose-m3/references/foundation/TransformingLazyColumnSample.kt.md +335 -0
  283. package/skills/android-wear-compose-m3/references/foundation/TransformingLazyColumnSample.kt.md.txt +335 -0
  284. package/skills/android-wear-compose-m3/references/material3/AlertDialogSample.kt.md +377 -0
  285. package/skills/android-wear-compose-m3/references/material3/AlertDialogSample.kt.md.txt +377 -0
  286. package/skills/android-wear-compose-m3/references/material3/AnimatedTextSample.kt.md +165 -0
  287. package/skills/android-wear-compose-m3/references/material3/AnimatedTextSample.kt.md.txt +165 -0
  288. package/skills/android-wear-compose-m3/references/material3/ButtonGroupSample.kt.md +91 -0
  289. package/skills/android-wear-compose-m3/references/material3/ButtonGroupSample.kt.md.txt +91 -0
  290. package/skills/android-wear-compose-m3/references/material3/ButtonSample.kt.md +496 -0
  291. package/skills/android-wear-compose-m3/references/material3/ButtonSample.kt.md.txt +496 -0
  292. package/skills/android-wear-compose-m3/references/material3/CardSample.kt.md +470 -0
  293. package/skills/android-wear-compose-m3/references/material3/CardSample.kt.md.txt +470 -0
  294. package/skills/android-wear-compose-m3/references/material3/CheckboxButtonSample.kt.md +67 -0
  295. package/skills/android-wear-compose-m3/references/material3/CheckboxButtonSample.kt.md.txt +67 -0
  296. package/skills/android-wear-compose-m3/references/material3/ConfirmationDialogSample.kt.md +162 -0
  297. package/skills/android-wear-compose-m3/references/material3/ConfirmationDialogSample.kt.md.txt +162 -0
  298. package/skills/android-wear-compose-m3/references/material3/CurvedTextSamples.kt.md +78 -0
  299. package/skills/android-wear-compose-m3/references/material3/CurvedTextSamples.kt.md.txt +78 -0
  300. package/skills/android-wear-compose-m3/references/material3/DatePickerSample.kt.md +131 -0
  301. package/skills/android-wear-compose-m3/references/material3/DatePickerSample.kt.md.txt +131 -0
  302. package/skills/android-wear-compose-m3/references/material3/DynamicColorSchemeSample.kt.md +74 -0
  303. package/skills/android-wear-compose-m3/references/material3/DynamicColorSchemeSample.kt.md.txt +74 -0
  304. package/skills/android-wear-compose-m3/references/material3/EdgeButtonSample.kt.md +63 -0
  305. package/skills/android-wear-compose-m3/references/material3/EdgeButtonSample.kt.md.txt +63 -0
  306. package/skills/android-wear-compose-m3/references/material3/FadingExpandingLabelSample.kt.md +60 -0
  307. package/skills/android-wear-compose-m3/references/material3/FadingExpandingLabelSample.kt.md.txt +60 -0
  308. package/skills/android-wear-compose-m3/references/material3/IconButtonSample.kt.md +125 -0
  309. package/skills/android-wear-compose-m3/references/material3/IconButtonSample.kt.md.txt +125 -0
  310. package/skills/android-wear-compose-m3/references/material3/IconToggleButtonSample.kt.md +116 -0
  311. package/skills/android-wear-compose-m3/references/material3/IconToggleButtonSample.kt.md.txt +116 -0
  312. package/skills/android-wear-compose-m3/references/material3/LevelIndicatorSample.kt.md +68 -0
  313. package/skills/android-wear-compose-m3/references/material3/LevelIndicatorSample.kt.md.txt +68 -0
  314. package/skills/android-wear-compose-m3/references/material3/LinearProgressIndicatorSample.kt.md +50 -0
  315. package/skills/android-wear-compose-m3/references/material3/LinearProgressIndicatorSample.kt.md.txt +50 -0
  316. package/skills/android-wear-compose-m3/references/material3/ListHeaderSample.kt.md +177 -0
  317. package/skills/android-wear-compose-m3/references/material3/ListHeaderSample.kt.md.txt +177 -0
  318. package/skills/android-wear-compose-m3/references/material3/OneHandedGestureSamples.kt.md +651 -0
  319. package/skills/android-wear-compose-m3/references/material3/OneHandedGestureSamples.kt.md.txt +651 -0
  320. package/skills/android-wear-compose-m3/references/material3/OpenOnPhoneDialogSample.kt.md +57 -0
  321. package/skills/android-wear-compose-m3/references/material3/OpenOnPhoneDialogSample.kt.md.txt +57 -0
  322. package/skills/android-wear-compose-m3/references/material3/PageIndicatorSample.kt.md +110 -0
  323. package/skills/android-wear-compose-m3/references/material3/PageIndicatorSample.kt.md.txt +110 -0
  324. package/skills/android-wear-compose-m3/references/material3/PagerScaffoldSample.kt.md +204 -0
  325. package/skills/android-wear-compose-m3/references/material3/PagerScaffoldSample.kt.md.txt +204 -0
  326. package/skills/android-wear-compose-m3/references/material3/PickerGroupSample.kt.md +139 -0
  327. package/skills/android-wear-compose-m3/references/material3/PickerGroupSample.kt.md.txt +139 -0
  328. package/skills/android-wear-compose-m3/references/material3/PickerSample.kt.md +111 -0
  329. package/skills/android-wear-compose-m3/references/material3/PickerSample.kt.md.txt +111 -0
  330. package/skills/android-wear-compose-m3/references/material3/PlaceholderSample.kt.md +184 -0
  331. package/skills/android-wear-compose-m3/references/material3/PlaceholderSample.kt.md.txt +184 -0
  332. package/skills/android-wear-compose-m3/references/material3/ProgressIndicatorSample.kt.md +263 -0
  333. package/skills/android-wear-compose-m3/references/material3/ProgressIndicatorSample.kt.md.txt +263 -0
  334. package/skills/android-wear-compose-m3/references/material3/RadioButtonSample.kt.md +105 -0
  335. package/skills/android-wear-compose-m3/references/material3/RadioButtonSample.kt.md.txt +105 -0
  336. package/skills/android-wear-compose-m3/references/material3/ScaffoldSample.kt.md +146 -0
  337. package/skills/android-wear-compose-m3/references/material3/ScaffoldSample.kt.md.txt +146 -0
  338. package/skills/android-wear-compose-m3/references/material3/ScrollAwaySample.kt.md +97 -0
  339. package/skills/android-wear-compose-m3/references/material3/ScrollAwaySample.kt.md.txt +97 -0
  340. package/skills/android-wear-compose-m3/references/material3/ScrollIndicatorSample.kt.md +66 -0
  341. package/skills/android-wear-compose-m3/references/material3/ScrollIndicatorSample.kt.md.txt +66 -0
  342. package/skills/android-wear-compose-m3/references/material3/SliderSample.kt.md +86 -0
  343. package/skills/android-wear-compose-m3/references/material3/SliderSample.kt.md.txt +86 -0
  344. package/skills/android-wear-compose-m3/references/material3/StepperSample.kt.md +148 -0
  345. package/skills/android-wear-compose-m3/references/material3/StepperSample.kt.md.txt +148 -0
  346. package/skills/android-wear-compose-m3/references/material3/SurfaceTransformationSample.kt.md +166 -0
  347. package/skills/android-wear-compose-m3/references/material3/SurfaceTransformationSample.kt.md.txt +166 -0
  348. package/skills/android-wear-compose-m3/references/material3/SwipeToDismissBoxSample.kt.md +172 -0
  349. package/skills/android-wear-compose-m3/references/material3/SwipeToDismissBoxSample.kt.md.txt +172 -0
  350. package/skills/android-wear-compose-m3/references/material3/SwipeToRevealSample.kt.md +367 -0
  351. package/skills/android-wear-compose-m3/references/material3/SwipeToRevealSample.kt.md.txt +367 -0
  352. package/skills/android-wear-compose-m3/references/material3/SwitchButtonSample.kt.md +66 -0
  353. package/skills/android-wear-compose-m3/references/material3/SwitchButtonSample.kt.md.txt +66 -0
  354. package/skills/android-wear-compose-m3/references/material3/TextButtonSample.kt.md +115 -0
  355. package/skills/android-wear-compose-m3/references/material3/TextButtonSample.kt.md.txt +115 -0
  356. package/skills/android-wear-compose-m3/references/material3/TextToggleButtonSample.kt.md +71 -0
  357. package/skills/android-wear-compose-m3/references/material3/TextToggleButtonSample.kt.md.txt +71 -0
  358. package/skills/android-wear-compose-m3/references/material3/TimePickerSample.kt.md +151 -0
  359. package/skills/android-wear-compose-m3/references/material3/TimePickerSample.kt.md.txt +151 -0
  360. package/skills/android-wear-compose-m3/references/material3/TimeTextSample.kt.md +65 -0
  361. package/skills/android-wear-compose-m3/references/material3/TimeTextSample.kt.md.txt +65 -0
  362. package/skills/android-wear-compose-m3/references/material3/TransformationSpecSample.kt.md +246 -0
  363. package/skills/android-wear-compose-m3/references/material3/TransformationSpecSample.kt.md.txt +246 -0
  364. package/skills/android-wear-compose-m3/references/material3/TransformingLazyColumnNotificationsSample.kt.md +89 -0
  365. package/skills/android-wear-compose-m3/references/material3/TransformingLazyColumnNotificationsSample.kt.md.txt +89 -0
  366. package/skills/android-wear-compose-m3/references/material3/TransformingLazyColumnSample.kt.md +309 -0
  367. package/skills/android-wear-compose-m3/references/material3/TransformingLazyColumnSample.kt.md.txt +309 -0
  368. package/skills/android-wear-compose-m3/references/navigation3/SwipeDismissableSceneStrategySample.kt.md +205 -0
  369. package/skills/android-wear-compose-m3/references/navigation3/SwipeDismissableSceneStrategySample.kt.md.txt +205 -0
  370. package/skills/{architecture-feature-first → flutter-architecture-feature-first}/SKILL.md +1 -1
  371. package/skills/{bloc → flutter-bloc}/SKILL.md +1 -1
  372. package/skills/flutter-build-debug/SKILL.md +66 -0
  373. package/skills/{code-review → flutter-code-review}/SKILL.md +1 -1
  374. package/skills/{dart-3-updates → flutter-dart-3-updates}/SKILL.md +1 -1
  375. package/skills/{dart-fix-runtime-errors → flutter-dart-fix-runtime-errors}/SKILL.md +1 -1
  376. package/skills/{dart-resolve-package-conflicts → flutter-dart-resolve-package-conflicts}/SKILL.md +1 -1
  377. package/skills/{dart-run-static-analysis → flutter-dart-run-static-analysis}/SKILL.md +1 -1
  378. package/skills/{dart-use-pattern-matching → flutter-dart-use-pattern-matching}/SKILL.md +1 -1
  379. package/skills/{effective-dart → flutter-effective-dart}/SKILL.md +1 -1
  380. package/skills/{provider → flutter-provider}/SKILL.md +1 -1
  381. package/skills/{riverpod → flutter-riverpod}/SKILL.md +1 -1
  382. package/skills/ios-cocoapods-debug/SKILL.md +65 -0
  383. package/skills/ios-code-review/SKILL.md +56 -0
  384. package/skills/ios-xcode-build-debug/SKILL.md +66 -0
  385. package/skills/{detect-mobile-stack → mobile-detect-stack}/SKILL.md +1 -1
  386. package/skills/mobile-firebase/SKILL.md +54 -0
  387. package/skills/mobile-firebase/references/android/ai-logic.md +31 -0
  388. package/skills/mobile-firebase/references/android/analytics.md +33 -0
  389. package/skills/mobile-firebase/references/android/app-check.md +36 -0
  390. package/skills/mobile-firebase/references/android/auth.md +44 -0
  391. package/skills/mobile-firebase/references/android/crashlytics.md +31 -0
  392. package/skills/mobile-firebase/references/android/firestore.md +44 -0
  393. package/skills/mobile-firebase/references/android/functions.md +33 -0
  394. package/skills/mobile-firebase/references/android/in-app-messaging.md +28 -0
  395. package/skills/mobile-firebase/references/android/messaging.md +41 -0
  396. package/skills/mobile-firebase/references/android/realtime-database.md +50 -0
  397. package/skills/mobile-firebase/references/android/remote-config.md +43 -0
  398. package/skills/mobile-firebase/references/android/sql-connect.md +31 -0
  399. package/skills/mobile-firebase/references/android/storage.md +39 -0
  400. package/skills/mobile-firebase/references/android.md +30 -0
  401. package/skills/{firebase-ai/SKILL.md → mobile-firebase/references/flutter/ai-logic.md} +2 -8
  402. package/skills/{firebase-analytics/SKILL.md → mobile-firebase/references/flutter/analytics.md} +2 -8
  403. package/skills/{firebase-app-check/SKILL.md → mobile-firebase/references/flutter/app-check.md} +2 -8
  404. package/skills/{firebase-auth/SKILL.md → mobile-firebase/references/flutter/auth.md} +2 -8
  405. package/skills/{firebase-crashlytics/SKILL.md → mobile-firebase/references/flutter/crashlytics.md} +2 -8
  406. package/skills/{firebase-cloud-firestore/SKILL.md → mobile-firebase/references/flutter/firestore.md} +2 -8
  407. package/skills/{firebase-cloud-functions/SKILL.md → mobile-firebase/references/flutter/functions.md} +2 -8
  408. package/skills/{firebase-in-app-messaging/SKILL.md → mobile-firebase/references/flutter/in-app-messaging.md} +2 -8
  409. package/skills/{firebase-messaging/SKILL.md → mobile-firebase/references/flutter/messaging.md} +2 -8
  410. package/skills/{firebase-database/SKILL.md → mobile-firebase/references/flutter/realtime-database.md} +2 -8
  411. package/skills/{firebase-remote-config/SKILL.md → mobile-firebase/references/flutter/remote-config.md} +2 -8
  412. package/skills/{flutterfire-configure/SKILL.md → mobile-firebase/references/flutter/setup-flutterfire.md} +1 -8
  413. package/skills/{firebase-data-connect/SKILL.md → mobile-firebase/references/flutter/sql-connect.md} +2 -8
  414. package/skills/{firebase-storage/SKILL.md → mobile-firebase/references/flutter/storage.md} +2 -8
  415. package/skills/mobile-firebase/references/flutter.md +36 -0
  416. package/skills/mobile-firebase/references/ios/ai-logic.md +30 -0
  417. package/skills/mobile-firebase/references/ios/analytics.md +33 -0
  418. package/skills/mobile-firebase/references/ios/app-check.md +36 -0
  419. package/skills/mobile-firebase/references/ios/auth.md +48 -0
  420. package/skills/mobile-firebase/references/ios/crashlytics.md +34 -0
  421. package/skills/mobile-firebase/references/ios/firestore.md +53 -0
  422. package/skills/mobile-firebase/references/ios/functions.md +35 -0
  423. package/skills/mobile-firebase/references/ios/in-app-messaging.md +26 -0
  424. package/skills/mobile-firebase/references/ios/messaging.md +45 -0
  425. package/skills/mobile-firebase/references/ios/realtime-database.md +49 -0
  426. package/skills/mobile-firebase/references/ios/remote-config.md +44 -0
  427. package/skills/mobile-firebase/references/ios/sql-connect.md +33 -0
  428. package/skills/mobile-firebase/references/ios/storage.md +36 -0
  429. package/skills/mobile-firebase/references/ios.md +28 -0
  430. package/skills/mobile-firebase/references/react-native/ai-logic.md +32 -0
  431. package/skills/mobile-firebase/references/react-native/analytics.md +43 -0
  432. package/skills/mobile-firebase/references/react-native/app-check.md +35 -0
  433. package/skills/mobile-firebase/references/react-native/auth.md +50 -0
  434. package/skills/mobile-firebase/references/react-native/crashlytics.md +36 -0
  435. package/skills/mobile-firebase/references/react-native/firestore.md +45 -0
  436. package/skills/mobile-firebase/references/react-native/functions.md +28 -0
  437. package/skills/mobile-firebase/references/react-native/in-app-messaging.md +27 -0
  438. package/skills/mobile-firebase/references/react-native/messaging.md +46 -0
  439. package/skills/mobile-firebase/references/react-native/realtime-database.md +46 -0
  440. package/skills/mobile-firebase/references/react-native/remote-config.md +32 -0
  441. package/skills/mobile-firebase/references/react-native/sql-connect.md +11 -0
  442. package/skills/mobile-firebase/references/react-native/storage.md +30 -0
  443. package/skills/mobile-firebase/references/react-native.md +29 -0
  444. package/skills/mobile-test/SKILL.md +63 -0
  445. package/skills/mobile-test/references/android/setup/GUIDE.md +183 -0
  446. package/skills/mobile-test/references/android/setup/references/android/develop/ui/compose/testing/common-patterns.md +181 -0
  447. package/skills/mobile-test/references/android/setup/references/android/studio/preview/compose-screenshot-testing.md +255 -0
  448. package/skills/mobile-test/references/android/setup/references/android/training/dependency-injection/hilt-testing.md +447 -0
  449. package/skills/mobile-test/references/android.md +83 -0
  450. package/skills/{dart-collect-coverage/SKILL.md → mobile-test/references/flutter/coverage.md} +2 -11
  451. package/skills/{dart-generate-test-mocks/SKILL.md → mobile-test/references/flutter/generate-mocks.md} +2 -11
  452. package/skills/{flutter-add-integration-test/SKILL.md → mobile-test/references/flutter/integration-tests.md} +2 -11
  453. package/skills/{dart-migrate-to-checks-package/SKILL.md → mobile-test/references/flutter/migrate-to-checks.md} +2 -13
  454. package/skills/{mockito/SKILL.md → mobile-test/references/flutter/mockito.md} +1 -8
  455. package/skills/{mocktail/SKILL.md → mobile-test/references/flutter/mocktail.md} +1 -8
  456. package/skills/{patrol-e2e-testing/SKILL.md → mobile-test/references/flutter/patrol.md} +1 -8
  457. package/skills/{testing/SKILL.md → mobile-test/references/flutter/testing-guidelines.md} +1 -8
  458. package/skills/{dart-add-unit-test/SKILL.md → mobile-test/references/flutter/unit-tests.md} +2 -11
  459. package/skills/{flutter-add-widget-test/SKILL.md → mobile-test/references/flutter/widget-tests.md} +2 -11
  460. package/skills/mobile-test/references/flutter.md +44 -0
  461. package/skills/mobile-test/references/ios.md +79 -0
  462. package/skills/mobile-test/references/react-native.md +62 -0
  463. /package/skills/{dart-use-pattern-matching → flutter-dart-use-pattern-matching}/examples/json_patterns.dart +0 -0
@@ -0,0 +1,1149 @@
1
+ Boost app engagement by reaching your users where they are. Integrate Engage SDK
2
+ to deliver personalized recommendations and continuation content directly to
3
+ users across multiple on-device surfaces, like
4
+ **[Collections](https://android-developers.googleblog.com/2024/07/introducing-collections-powered-by-engage-sdk.html)** , **[Entertainment
5
+ Space](https://blog.google/products/android/entertainment-space/)** , and the Play Store. The integration adds
6
+ less than 50 KB (compressed) to the average APK and takes most apps about a
7
+ week of developer time. Learn more at our **[business
8
+ site](http://play.google.com/console/about/programs/EngageSDK)**.
9
+
10
+ This guide contains instructions for developer partners to deliver food content
11
+ (food ordering, food or restaurant reviews \& discovery, meal subscriptions,
12
+ recipes) to Engage content surfaces.
13
+
14
+ ## Integration detail
15
+
16
+ ### Terminology
17
+
18
+ This integration includes the following five cluster types: **Recommendation** ,
19
+ **Featured** , **Food Shopping Cart** , **Food Shopping List** , and **Reorder**.
20
+
21
+ - **Recommendation** clusters show personalized food-related suggestions from an
22
+ individual developer partner. These recommendations can be personalized to the
23
+ user or generalized (for example, new on sale). Use them to surface recipes,
24
+ stores, dishes, groceries, and so on as you see fit.
25
+
26
+ - A Recommendation cluster can be made of `ProductEntity`, `StoreEntity`, or `RecipeEntity` listings, but not a mix of different entity types.
27
+
28
+ ![](https://developer.android.com/static/images/guide/playcore/engage/food-entities.png) **Figure :**\`ProductEntity\`, \`StoreEntity\`, and \`RecipeEntity\`. (\*UI for illustrative purposes only)
29
+ - The **Featured** cluster showcases a selection of entities from multiple
30
+ developer partners in one UI grouping. There will be a single Featured
31
+ cluster, which is surfaced near the top of the UI with a priority placement
32
+ above all Recommendation clusters. Each developer partner will be allowed to
33
+ broadcast up to 10 entities in the Featured cluster.
34
+
35
+ ![](https://developer.android.com/static/images/guide/playcore/engage/food-featured.png) **Figure :** Featured cluster with the \`RecipeEntity\`. (\*UI for illustrative purposes only)
36
+ - The **Food Shopping Cart** cluster shows a sneak peek of grocery shopping
37
+ carts from multiple developer partners in one UI grouping, prompting users to
38
+ complete their outstanding carts. There is a single Food Shopping Cart
39
+ cluster.
40
+
41
+ - Food Shopping Cart Cluster must show the total count of items in the
42
+ cart and may also include images for X items in the user's cart.
43
+
44
+ ![](https://developer.android.com/static/images/guide/playcore/engage/food-shopping-cart.png) **Figure:** Food Shopping Cart cluster from a single partner. (\*UI for illustrative purposes only)
45
+ - The **Food Shopping List** cluster shows a sneak peek of the grocery shopping
46
+ lists from multiple developer partners in one UI grouping, prompting users to
47
+ return to the corresponding app to update and complete their lists. There is a
48
+ single Food Shopping List cluster.
49
+
50
+ ![](https://developer.android.com/static/images/guide/playcore/engage/food-shopping-list.png) **Figure:** Food Shopping List cluster from a single partner. (\*UI for illustrative purposes only)
51
+ - The **Reorder** cluster shows a sneak peek of the previous orders from
52
+ multiple developer partners in one UI grouping, prompting users to reorder.
53
+ There is a single Reorder cluster.
54
+
55
+ - Reorder cluster must show the total count of items in the
56
+ user's previous order and must also include one of the following:
57
+
58
+ - Images for X items in the user's previous order.
59
+ - Labels for X items in the user's previous order.
60
+
61
+ ![](https://developer.android.com/static/images/guide/playcore/engage/food-reorder-cluster.png) **Figure:** Food Reorder cluster from a single partner. (\*UI for illustrative purposes only)
62
+
63
+ ### Pre-work
64
+
65
+ Minimum API level: 19
66
+
67
+ Add the `com.google.android.engage:engage-core` library to your app:
68
+
69
+ dependencies {
70
+ // Make sure you also include that repository in your project's build.gradle file.
71
+ implementation 'com.google.android.engage:engage-core:1.6.0'
72
+ }
73
+
74
+ ### Summary
75
+
76
+ The design is based on an implementation of a [bound
77
+ service](https://developer.android.com/guide/components/bound-services).
78
+
79
+ The data a client can publish is subject to the following limits for different
80
+ cluster types:
81
+
82
+ | Cluster type | Cluster limits | Maximum entity limits in a cluster |
83
+ |---|---|---|
84
+ | Recommendation Cluster(s) | At most 7 | At most 50 (`ProductEntity`, `RecipeEntity`, or `StoreEntity`) |
85
+ | Featured Cluster | At most 1 | At most 20 (`ProductEntity`, `RecipeEntity`, or `StoreEntity`) |
86
+ | Food Shopping Cart Cluster | At most 1 | At most 3 `FoodShoppingCart` |
87
+ | Food Shopping List Cluster | At most 1 | At most 3 `FoodShoppingList` |
88
+ | Food Reorder Cluster | At most 1 | At most 1 `ReorderEntity` |
89
+
90
+ ### Step 1: Provide entity data
91
+
92
+ The SDK has defined different entities to represent each item type. We support
93
+ the following entities for the Food category:
94
+
95
+ 1. `ProductEntity`
96
+ 2. `StoreEntity`
97
+ 3. `RecipeEntity`
98
+ 4. `FoodShoppingCart`
99
+ 5. `FoodShoppingList`
100
+ 6. `FoodReorderCluster`
101
+
102
+ The charts below outline available attributes and requirements for each type.
103
+
104
+ #### `ProductEntity`
105
+
106
+ The `ProductEntity` object represents an individual item (such as a grocery
107
+ item, dish from a restaurant, or a promotion) that developer partners want to
108
+ publish.
109
+
110
+ <br />
111
+
112
+ ![](https://developer.android.com/static/images/guide/playcore/engage/food-product-entity.png) **Figure :** Attributes of `ProductEntity`
113
+
114
+ <br />
115
+
116
+ | Attribute | Requirement | Description | Format |
117
+ |---|---|---|---|
118
+ | Poster images | **Required** | At least one image must be provided. | See [Image Specifications](https://developer.android.com/guide/playcore/engage/food#image-specs) for guidance. |
119
+ | Action Uri | **Required** | The deep link to the page in the app displaying details about the product. Note: You can use deep links for attribution. [Refer to this FAQ](https://developer.android.com/guide/playcore/engage/faq#deeplinks-attribution) | Uri |
120
+ | Title | Optional | The name of the product. | Free text **Recommended text size: under 90 chars** (Text that is too long may show ellipses) |
121
+ | Price - current | Conditionally required | The current price of the product. **Must be provided if strikethrough price is provided.** | Free text |
122
+ | Price - strikethrough | Optional | The original price of the entity, which is struck-through in the UI. | Free text |
123
+ | Callout | Optional | Callout to feature a promo, event, or update for the product, if available. | Free text **Recommended text size: under 45 chars** (Text that is too long may show ellipses) |
124
+ | Callout fine print | Optional | Fine print text for the callout. | Free text **Recommended text size: under 45 chars** (Text that is too long may show ellipses) |
125
+ | **Rating (Optional) - Note: All ratings are displayed using our standard star rating system.** ||||
126
+ | Rating - Max value | Optional | The maximum value of the rating scale. **Must be provided if current value of rating is also provided.** | Number \>= 0.0 |
127
+ | Rating - Current value | Optional | The current value of the rating scale. **Must be provided if maximum value of rating is also provided.** | Number \>= 0.0 |
128
+ | Rating - Count | Optional | The count of the ratings for the product. **Note:** Provide this field if your app controls how the count is displayed to the users. Use a concise string. For example, if the count is 1,000,000, consider using an abbreviation like 1M so that the count isn't truncated on smaller display sizes. | String |
129
+ | Rating - Count Value | Optional | The count of the ratings for the product. **Note:** Provide this field if you don't handle the display abbreviation logic yourself. If both Count and Count Value are present, Count is displayed to users. | Long |
130
+ | **DisplayTimeWindow (Optional) - Set a time window for a content to be shown on the surface** ||||
131
+ | Start Timestamp | Optional | The epoch timestamp after which the content should be shown on the surface. If not set, content is eligible to be shown on the surface. | Epoch timestamp in milliseconds |
132
+ | End Timestamp | Optional | The epoch timestamp after which the content is no longer shown on the surface. If not set, content is eligible to be shown on the surface. | Epoch timestamp in milliseconds |
133
+
134
+ #### `StoreEntity`
135
+
136
+ The `StoreEntity` object represents an individual store that developer partners
137
+ want to publish, such as a restaurant or a grocery store.
138
+
139
+ <br />
140
+
141
+ ![](https://developer.android.com/static/images/guide/playcore/engage/food-store-entity.png) **Figure :** Attributes of `StoreEntity`
142
+
143
+ <br />
144
+
145
+ | Attribute | Requirement | Description | Format |
146
+ |---|---|---|---|
147
+ | Poster images | **Required** | At least one image must be provided. | See [Image Specifications](https://developer.android.com/guide/playcore/engage/food#image-specs) for guidance. |
148
+ | Action Uri | **Required** | The deep link to the page in the app displaying details about the store. Note: You can use deep links for attribution. [Refer to this FAQ](https://developer.android.com/guide/playcore/engage/faq#deeplinks-attribution) | Uri |
149
+ | Title | Optional | The name of the store. | Free text **Recommended text size: under 45 chars** (Text that is too long may show ellipses) |
150
+ | Location | Optional | The location of the store. | Free text **Recommended text size: under 45 chars** (Text that is too long may show ellipses) |
151
+ | Callout | Optional | Callout to feature a promo, event, or update for the store, if available. | Free text **Recommended text size: under 45 chars** (Text that is too long may show ellipses) |
152
+ | Callout fine print | Optional | Fine print text for the callout. | Free text **Recommended text size: under 45 chars** (Text that is too long may show ellipses) |
153
+ | Description | Optional | A description of the store. | Free text **Recommended text size: under 90 chars** (Text that is too long may show ellipses) |
154
+ | Category | Optional | Category of a store, in the context of dining places, it can be cuisine like "french", "new american", "ramen", "fine dining". | Free text **Recommended text size: under 45 chars** (Text that is too long may show ellipses) |
155
+ | **Note: All ratings is displayed using our standard star rating system.** ||||
156
+ | Rating - Max value | Optional | The maximum value of the rating scale. **Must be provided if current value of rating is also provided.** | Number \>= 0.0 |
157
+ | Rating - Current value | Optional | The current value of the rating scale. **Must be provided if maximum value of rating is also provided.** | Number \>= 0.0 |
158
+ | Rating - Count | Optional | The count of the ratings for the store. **Note:** Provide this field if your app wants to control how this is displayed to the users. Provide the concise string that can be displayed to the user. For example, if the count is 1,000,000, consider using abbreviations like 1M, so that it won't be truncated on smaller display sizes. | String |
159
+ | Rating - Count Value | Optional | The count of the ratings for the store. **Note:** Provide this field if you don't want to handle the display abbreviation logic yourself. If both Count and Count Value are present, we will use the Count to display to users | Long |
160
+
161
+ #### `RecipeEntity`
162
+
163
+ The `RecipeEntity` object represents a recipe item that developer partners want
164
+ to publish.
165
+
166
+ <br />
167
+
168
+ ![](https://developer.android.com/static/images/guide/playcore/engage/food-recipe-entity.png) **Figure :** Attributes of `RecipeEntity`
169
+
170
+ <br />
171
+
172
+ | Attribute | Requirement | Description | Format |
173
+ |---|---|---|---|
174
+ | Poster images | **Required** | At least one image must be provided. | See [Image Specifications](https://developer.android.com/guide/playcore/engage/food#image-specs) for guidance. |
175
+ | Action Uri | **Required** | The deep link to the page in the app displaying details about the recipe. Note: You can use deep links for attribution. [Refer to this FAQ](https://developer.android.com/guide/playcore/engage/faq#deeplinks-attribution) | Uri |
176
+ | Title | Optional | The name of the recipe. | Free text **Recommended text size: under 45 chars** (Text that is too long may show ellipses) |
177
+ | Author | Optional | The author of the recipe. | Free text **Recommended text size: under 45 chars** (Text that is too long may show ellipses) |
178
+ | Cook/Preparation time | Optional | The cooking time of the recipe. | Free text **Recommended text size: under 45 chars** (Text that is too long may show ellipses) |
179
+ | Callout | Optional | Callout to feature a promo, event, or update for the recipe, if available. | Free text **Recommended text size: under 45 chars** (Text that is too long may show ellipses) |
180
+ | Category | Optional | The category of the recipe. | Free text **Recommended text size: under 45 chars** (Text that is too long may show ellipses) |
181
+ | Description | Optional | A description of the recipe. | Free text **Recommended text size: under 90 chars** (Text that is too long may show ellipses) |
182
+ | **Note: All ratings are displayed using our standard star rating system.** ||||
183
+ | Rating - Max value | Optional | The maximum value of the rating scale. **Must be provided if current value of rating is also provided.** | Number \>= 0.0 |
184
+ | Rating - Current value | Optional | The current value of the rating scale. **Must be provided if maximum value of rating is also provided.** | Number \>= 0.0 |
185
+ | Rating - Count | Optional | The count of the ratings for the recipe. **Note:** Provide this field if your app wants to control how this is displayed to the users. Provide the concise string that can be displayed to the user. For example, if the count is 1,000,000, consider using abbreviations like 1M, so that it won't be truncated on smaller display sizes. | String |
186
+ | Rating - Count Value | Optional | The count of the ratings for the recipe. **Note:** Provide this field if you don't want to handle the display abbreviation logic yourself. If both Count and Count Value are present, we will use the Count to display to users | Long |
187
+
188
+ #### `FoodShoppingCart`
189
+
190
+ <br />
191
+
192
+ ![](https://developer.android.com/static/images/guide/playcore/engage/food-shopping-cart-attributes.png) **Figure:** Food Shopping Cart cluster attributes.
193
+
194
+ <br />
195
+
196
+ | Attribute | Requirement | Description | Format |
197
+ |---|---|---|---|
198
+ | Action Uri | **Required** | The deep link to the shopping cart in the partner's app. Note: You can use deep links for attribution. [Refer to this FAQ](https://developer.android.com/guide/playcore/engage/faq#deeplinks-attribution) | Uri |
199
+ | Number of items | **Required** | The number of items (not just number of products) in the shopping cart. **For example: If there are 3 oranges and 1 apple in the cart, this number should be 4.** | Integer \>= 1 |
200
+ | Last user interaction timestamp | **Required** | Number of milliseconds elapsed from the epoch, identifying the last time when user interacted with the shopping cart. | Epoch timestamp in milliseconds |
201
+ | Title | Optional | The title of the cart (for example, *Your cart*). **If no title is provided by the developer, *Your cart* is the default.** | Free text **Recommended text size: under 25 chars** (Text that is too long may show ellipses) |
202
+ | Action Text | Optional | The call to action text of the button on the Shopping Cart (for example, *Your Shopping Bag*). **If no action text is provided by the developer, *View Cart* is the default.** This attribute is supported in version 1.1.0 onwards. | String |
203
+ | Cart images | Optional | Images of each product in the cart. **Up to 10 images can be provided in order of priority; the actual number of images displayed depends on the device form factor.** | See [Image Specifications](https://developer.android.com/guide/playcore/engage/food#image-specs) for guidance. |
204
+ | Item labels | Optional | The list of labels for items on the shopping list. **The actual number of labels displayed depends on the device form factor.** | List of free text labels **Recommended text size: under 20 chars** (Text that is too long may show ellipses) |
205
+ | **DisplayTimeWindow (Optional) - Set a time window for a content to be shown on the surface** ||||
206
+ | Start Timestamp | Optional | The epoch timestamp after which the content should be shown on the surface. If not set, content is eligible to be shown on the surface. | Epoch timestamp in milliseconds |
207
+ | End Timestamp | Optional | The epoch timestamp after which the content is no longer shown on the surface. If not set, content is eligible to be shown on the surface. | Epoch timestamp in milliseconds |
208
+
209
+ #### `FoodShoppingList`
210
+
211
+ <br />
212
+
213
+ ![](https://developer.android.com/static/images/guide/playcore/engage/food-shopping-list.png) **Figure:** Food Shopping List cluster.
214
+
215
+ <br />
216
+
217
+ | Attribute | Requirement | Description | Format |
218
+ |---|---|---|---|
219
+ | Action Uri | **Required** | The deep link to the shopping list in the partner's app. Note: You can use deep links for attribution. [Refer to this FAQ](https://developer.android.com/guide/playcore/engage/faq#deeplinks-attribution) | Uri |
220
+ | Number of items | **Required** | The number of items in the shopping list. | Integer \>= 1 |
221
+ | Last user interaction timestamp | **Required** | Number of milliseconds elapsed from the epoch, identifying the last time when user interacted with the shopping list. | Epoch timestamp in milliseconds |
222
+ | Title | Optional | The title of the list (for example, *Your Grocery List*). **If no title is provided by the developer, *Shopping list* is the default.** | Free text **Recommended text size: under 25 chars** (Text that is too long may show ellipses) |
223
+ | Item labels | **Required** | The list of labels for items on the shopping list. **At least 1 label must be provided and up to 10 labels can be provided in order of priority; the actual number of labels displayed depends on the device form factor.** | List of free text labels **Recommended text size: under 20 chars** (Text that is too long may show ellipses) |
224
+
225
+ #### `FoodReorderCluster`
226
+
227
+ <br />
228
+
229
+ ![](https://developer.android.com/static/images/guide/playcore/engage/food-reorder-cluster.png) **Figure:** Food Reorder cluster.
230
+
231
+ <br />
232
+
233
+ | Attribute | Requirement | Description | Format |
234
+ |---|---|---|---|
235
+ | Action Uri | **Required** | The deep link to reorder in the partner's app. Note: You can use deep links for attribution. [Refer to this FAQ](https://developer.android.com/guide/playcore/engage/faq#deeplinks-attribution) | Uri |
236
+ | Action Text | Optional | The call to action text of the button on the Reorder (for example, *Order again*). **If no action text is provided by the developer, *Reorder* is the default.** This attribute is supported in version 1.1.0 onwards. | String |
237
+ | Number of items | **Required** | The number of items (not just number of products) in the previous order. **For example: If there were 3 small coffees and 1 croissant in the previous order, this number should be 4.** | Integer \>= 1 |
238
+ | Title | **Required** | The title of the reorder item. | Free text **Recommended text size: under 40 chars** (Text that is too long may show ellipses) |
239
+ | Item labels | Optional (If not provided, poster images should be provided) | The list of item labels for the previous order. **Up to 10 labels can be provided in order of priority; the actual number of labels displayed depends on the device form factor.** | List of free text **Recommended text size per label: under 20 chars** (Text that is too long may show ellipses) |
240
+ | Poster images | Optional (If not provided, item labels should be provided) | Images of the items in the previous order. **Up to 10 images can be provided in order of priority; the actual number of images displayed depends on the device form factor.** | See [Image Specifications](https://developer.android.com/guide/playcore/engage/food#image-specs) for guidance. |
241
+
242
+ #### Image specifications
243
+
244
+ Required specifications for image assets are listed below:
245
+
246
+ | Aspect ratio | Minimum pixels | Recommended pixels |
247
+ |---|---|---|
248
+ | Square (1x1) **Preferred** | 300x300 | 1200x1200 |
249
+ | Landscape (1.91x1) | 600x314 | 1200x628 |
250
+ | Portrait (4x5) | 480x600 | 960x1200 |
251
+
252
+ *File formats*
253
+
254
+ PNG, JPG, static GIF, WebP
255
+
256
+ *Maximum file size*
257
+
258
+ 5120 KB
259
+
260
+ *Additional recommendations*
261
+
262
+ - **Image safe area:** Put your important content in the center 80% of the image.
263
+ - Use a transparent background so that the image can be properly displayed in Dark and Light theme settings.
264
+
265
+ ### Step 2: Provide Cluster data
266
+
267
+ It is recommended to have the content publish job executed in the background
268
+ (for example, using [WorkManager](https://developer.android.com/topic/libraries/architecture/workmanager))
269
+ and scheduled on a regular basis or on an event basis (for example, every time
270
+ the user opens the app or when the user just added something to their cart).
271
+
272
+ `AppEngageFoodClient` is responsible for publishing food clusters.
273
+
274
+ There are following APIs to publish clusters in the client:
275
+
276
+ - `isServiceAvailable`
277
+ - `publishRecommendationClusters`
278
+ - `publishFeaturedCluster`
279
+ - `publishFoodShoppingCarts`
280
+ - `publishFoodShoppingLists`
281
+ - `publishReorderCluster`
282
+ - `publishUserAccountManagementRequest`
283
+ - `updatePublishStatus`
284
+ - `deleteRecommendationsClusters`
285
+ - `deleteFeaturedCluster`
286
+ - `deleteFoodShoppingCartCluster`
287
+ - `deleteFoodShoppingListCluster`
288
+ - `deleteReorderCluster`
289
+ - `deleteUserManagementCluster`
290
+ - `deleteClusters`
291
+
292
+ #### `isServiceAvailable`
293
+
294
+ This API is used to check if the service is available for integration and
295
+ whether the content can be presented on the device.
296
+
297
+ ##### For Engage SDK v1.6.0 and higher (Recommended)
298
+
299
+
300
+ ## Android skills
301
+
302
+ [View on GitHub](https://github.com/android/skills/tree/main/play/engage-sdk-integration)
303
+
304
+ ### Engage SDK integration
305
+
306
+ To install the skill from the [Android CLI](https://developer.android.com/tools/agents/android-cli), run:
307
+
308
+ android skills add engage-sdk-integration
309
+
310
+ If your team uses AI coding tools (such as Gemini in Android Studio), you can automate this migration by prompting your AI assistant:
311
+
312
+ Use the engage-sdk-integration skill to use Engage SDK 1.6.0 and refactor isServiceAvailable to pass ServiceAvailabilityRequest for publishing all cluster types.
313
+
314
+ <br />
315
+
316
+ You can check the service availability for every cluster type that you intend to
317
+ publish. The `isServiceAvailable` API accepts a request object,
318
+ `ServiceAvailabilityRequest`, which contains the cluster types for which service
319
+ availability needs to be checked. You can find the `ClusterType` enum values
320
+ required for `ServiceAvailabilityRequest` from the following table.
321
+
322
+ | Cluster Type | Cluster Type Constant | Integer Value |
323
+ |---|---|---|
324
+ | Unknown | `TYPE_UNKNOWN` | 0 |
325
+ | Recommendation Cluster | `TYPE_RECOMMENDATION` | 1 |
326
+ | Featured Cluster | `TYPE_FEATURED` | 2 |
327
+ | Continuation Cluster | `TYPE_CONTINUATION` | 3 |
328
+ | Food Reorder Cluster | `TYPE_FOOD_REORDER` | 5 |
329
+ | Food Shopping Cart Cluster | `TYPE_FOOD_SHOPPING_CART` | 6 |
330
+ | Food Shopping List Cluster | `TYPE_FOOD_SHOPPING_LIST` | 7 |
331
+ | User Management Cluster | `TYPE_ENGAGEMENT` | 8 |
332
+ | Subscription Cluster | `TYPE_SUBSCRIPTION` | 12 |
333
+
334
+ ### Kotlin
335
+
336
+ val request = ServiceAvailabilityRequest.Builder()
337
+ .addIntendedClusterType(ClusterType.TYPE_CONTINUATION)
338
+ .addIntendedClusterType(ClusterType.TYPE_RECOMMENDATION)
339
+ .build()
340
+
341
+ client.isServiceAvailable(request).addOnCompleteListener { task ->
342
+ if (task.isSuccessful) {
343
+ val availabilityMap = task.result
344
+ if (availabilityMap[ClusterType.TYPE_CONTINUATION] == true) {
345
+ // Proceed with publishing continuation content
346
+ }
347
+ if (availabilityMap[ClusterType.TYPE_RECOMMENDATION] == true) {
348
+ // Proceed with publishing recommendation content
349
+ }
350
+ } else {
351
+ // The IPC call itself fails, proceed with error handling logic here,
352
+ // such as retry.
353
+ }
354
+ }
355
+
356
+ ### Java
357
+
358
+ ServiceAvailabilityRequest request =
359
+ new ServiceAvailabilityRequest.Builder()
360
+ .addIntendedClusterType(ClusterType.TYPE_CONTINUATION)
361
+ .addIntendedClusterType(ClusterType.TYPE_RECOMMENDATION)
362
+ .build();
363
+
364
+ client.isServiceAvailable(request).addOnCompleteListener(task -> {
365
+ if (task.isSuccessful()) {
366
+ Map<Integer, Boolean> availabilityMap = task.getResult();
367
+ if (Boolean.TRUE.equals(availabilityMap.get(ClusterType.TYPE_CONTINUATION))) {
368
+ // Proceed with publishing continuation content
369
+ }
370
+ if (Boolean.TRUE.equals(availabilityMap.get(ClusterType.TYPE_RECOMMENDATION))) {
371
+ // Proceed with publishing recommendation content
372
+ }
373
+ } else {
374
+ // The IPC call itself fails, proceed with error handling logic here,
375
+ // such as retry.
376
+ }
377
+ });
378
+
379
+ ###### Conditional Service Availability Feature
380
+
381
+ Some integrated apps request a special configuration that enables and disables
382
+ the Engage service intermittently in order to reduce their serving cost. This
383
+ intermittent content ingestion strategy, although possible, negatively affects
384
+ the user and the product -- stale content will not be presented and some surfaces
385
+ will not be served at all.
386
+
387
+ Starting with v1.6.0, the Engage SDK allows checking availability for specific
388
+ cluster types. This provides more flexibility so that if the intermittent
389
+ content strategy was adopted by a given application, some cluster types can
390
+ follow that intermittent strategy while other cluster types are always enabled
391
+ (i.e. continuation clusters).
392
+
393
+ If the Engage service should not be 'continuously' enabled on all supported
394
+ devices for whatever reason, and is configured for intermittent ingestion for
395
+ any set of devices, all continuation cluster publications (e.g. Food Shopping
396
+ Cart, Food Shopping List, and Reorder) will be still enabled by default
397
+ configuration, and the rest of the cluster types will be enabled and disabled
398
+ intermittently. If intermittent ingestion applies to you but this default
399
+ configuration is not suitable for your needs, please contact
400
+ engage-developers@google.com.
401
+
402
+ ##### For SDK versions prior to v1.6.0 (Deprecated)
403
+
404
+ ### Kotlin
405
+
406
+ client.isServiceAvailable.addOnCompleteListener { task ->
407
+ if (task.isSuccessful) {
408
+ // Handle IPC call success
409
+ if(task.result) {
410
+ // Service is available on the device, proceed with content publish
411
+ // calls.
412
+ } else {
413
+ // Service is not available, no further action is needed.
414
+ }
415
+ } else {
416
+ // The IPC call itself fails, proceed with error handling logic here,
417
+ // such as retry.
418
+ }
419
+ }
420
+
421
+ ### Java
422
+
423
+ client.isServiceAvailable().addOnCompleteListener(task - > {
424
+ if (task.isSuccessful()) {
425
+ // Handle success
426
+ if(task.getResult()) {
427
+ // Service is available on the device, proceed with content publish
428
+ // calls.
429
+ } else {
430
+ // Service is not available, no further action is needed.
431
+ }
432
+ } else {
433
+ // The IPC call itself fails, proceed with error handling logic here,
434
+ // such as retry.
435
+ }
436
+ });
437
+
438
+ > [!NOTE]
439
+ > **Note:** We highly recommend keeping a periodic job running to check if the service becomes available at a later point in time. The availability of the service may change with Android version upgrades, app upgrades, installs, and uninstalls. By ensuring periodic job checks at a certain time interval, data can be published once the service becomes available.
440
+
441
+ #### `publishRecommendationClusters`
442
+
443
+ This API is used to publish a list of `RecommendationCluster` objects.
444
+
445
+ A `RecommendationCluster` object can have the following attributes:
446
+
447
+ | Attribute | Requirement | Description |
448
+ |---|---|---|
449
+ | List of ProductEntity, StoreEntity, or RecipeEntity | **Required** | A list of entities that make up the recommendations for this Recommendation Cluster. Entities in a single cluster must be of the same type. |
450
+ | Title | **Required** | The title for the Recommendation Cluster (for example, *Big savings on Thanksgiving menu*). **Recommended text size: under 25 chars** (Text that is too long may show ellipses) |
451
+ | Subtitle | Optional | The subtitle for the Recommendation Cluster. |
452
+ | Action Uri | Optional | The deep link to the page in the partner app where users can see the complete list of recommendations. Note: You can use deep links for attribution. [Refer to this FAQ](https://developer.android.com/guide/playcore/engage/faq#deeplinks-attribution) |
453
+
454
+ > [!IMPORTANT]
455
+ > **Important:** The publish APIs are upsert APIs; it replaces the existing content. **Don't** call delete and publish APIs subsequently to replace the content as the publish APIs do that inherently.
456
+
457
+ ### Kotlin
458
+
459
+ client.publishRecommendationClusters(
460
+ PublishRecommendationClustersRequest.Builder()
461
+ .addRecommendationCluster(
462
+ RecommendationCluster.Builder()
463
+ .addEntity(entity1)
464
+ .addEntity(entity2)
465
+ .setTitle("Big savings on Thanksgiving menu")
466
+ .build())
467
+ .build())
468
+
469
+ ### Java
470
+
471
+ client.publishRecommendationClusters(
472
+ new PublishRecommendationClustersRequest.Builder()
473
+ .addRecommendationCluster(
474
+ new RecommendationCluster.Builder()
475
+ .addEntity(entity1)
476
+ .addEntity(entity2)
477
+ .setTitle("Big savings on Thanksgiving menu")
478
+ .build())
479
+ .build());
480
+
481
+ When the service receives the request, the following actions take place within
482
+ one transaction:
483
+
484
+ - All existing Recommendation Cluster data is removed.
485
+ - Data from the request is parsed and stored in new Recommendation Clusters.
486
+
487
+ In case of an error, the entire request is rejected and the existing state is
488
+ maintained.
489
+
490
+ #### `publishFeaturedCluster`
491
+
492
+ This API is used to publish a `FeaturedCluster` object.
493
+
494
+ > [!IMPORTANT]
495
+ > **Important:** The publish APIs are upsert APIs; it replaces the existing content. **Don't** call delete and publish APIs subsequently to replace the content as the publish APIs do that inherently.
496
+
497
+ ### Kotlin
498
+
499
+ client.publishFeaturedCluster(
500
+ PublishFeaturedClusterRequest.Builder()
501
+ .setFeaturedCluster(
502
+ FeaturedCluster.Builder()
503
+ ...
504
+ .build())
505
+ .build())
506
+
507
+ ### Java
508
+
509
+ client.publishFeaturedCluster(
510
+ new PublishFeaturedClusterRequest.Builder()
511
+ .setFeaturedCluster(
512
+ new FeaturedCluster.Builder()
513
+ ...
514
+ .build())
515
+ .build());
516
+
517
+ When the service receives the request, the following actions take place within
518
+ one transaction:
519
+
520
+ - Existing `FeaturedCluster` data from the developer partner is removed.
521
+ - Data from the request is parsed and stored in the updated Featured Cluster.
522
+
523
+ In case of an error, the entire request is rejected and the existing state is
524
+ maintained.
525
+
526
+ #### `publishFoodShoppingCarts`
527
+
528
+ This API is used to publish a list of `FoodShoppingCart` objects.
529
+
530
+ > [!IMPORTANT]
531
+ > **Important:** The publish APIs are upsert APIs; it replaces the existing content. **Don't** call delete and publish APIs subsequently to replace the content as the publish APIs do that inherently.
532
+
533
+ ### Kotlin
534
+
535
+ client.publishFoodShoppingCarts(
536
+ PublishFoodShoppingCartsRequest.Builder()
537
+ .addFoodShoppingCart(
538
+ FoodShoppingCart.Builder()
539
+ ...
540
+ .build())
541
+ .build())
542
+
543
+ ### Java
544
+
545
+ client.publishFoodShoppingCarts(
546
+ new PublishFoodShoppingCartsRequest.Builder()
547
+ .addFoodShoppingCart(
548
+ new FoodShoppingCart.Builder()
549
+ ...
550
+ .build())
551
+ .build());
552
+
553
+ When the service receives the request, the following actions take place within
554
+ one transaction:
555
+
556
+ - Existing `FoodShoppingCart` data from the developer partner is removed.
557
+ - Data from the request is parsed and stored in the updated Shopping Cart Cluster.
558
+
559
+ In case of an error, the entire request is rejected and the existing state is
560
+ maintained.
561
+
562
+ #### `publishFoodShoppingLists`
563
+
564
+ This API is used to publish a list of `FoodShoppingList` objects.
565
+
566
+ > [!IMPORTANT]
567
+ > **Important:** The publish APIs are upsert APIs; it replaces the existing content. **Don't** call delete and publish APIs subsequently to replace the content as the publish APIs do that inherently.
568
+
569
+ ### Kotlin
570
+
571
+ client.publishFoodShoppingLists(
572
+ PublishFoodShoppingListsRequest.Builder()
573
+ .addFoodShoppingList(
574
+ FoodShoppingListEntity.Builder()
575
+ ...
576
+ .build())
577
+ .build())
578
+
579
+ ### Java
580
+
581
+ client.publishFoodShoppingLists(
582
+ new PublishFoodShoppingListsRequest.Builder()
583
+ .addFoodShoppingList(
584
+ new FoodShoppingListEntity.Builder()
585
+ ...
586
+ .build())
587
+ .build());
588
+
589
+ When the service receives the request, the following actions take place within
590
+ one transaction:
591
+
592
+ - Existing `FoodShoppingList` data from the developer partner is removed.
593
+ - Data from the request is parsed and stored in the updated Shopping List Cluster.
594
+
595
+ In case of an error, the entire request is rejected and the existing state is
596
+ maintained.
597
+
598
+ #### `publishReorderCluster`
599
+
600
+ This API is used to publish a `FoodReorderCluster` object.
601
+
602
+ > [!IMPORTANT]
603
+ > **Important:** The publish APIs are upsert APIs; it replaces the existing content. **Don't** call delete and publish APIs subsequently to replace the content as the publish APIs do that inherently.
604
+
605
+ ### Kotlin
606
+
607
+ client.publishReorderCluster(
608
+ PublishReorderClusterRequest.Builder()
609
+ .setReorderCluster(
610
+ FoodReorderCluster.Builder()
611
+ ...
612
+ .build())
613
+ .build())
614
+
615
+ ### Java
616
+
617
+ client.publishReorderCluster(
618
+ new PublishReorderClusterRequest.Builder()
619
+ .setReorderCluster(
620
+ new FoodReorderCluster.Builder()
621
+ ...
622
+ .build())
623
+ .build());
624
+
625
+ When the service receives the request, the following actions take place within
626
+ one transaction:
627
+
628
+ - Existing `FoodReorderCluster` data from the developer partner is removed.
629
+ - Data from the request is parsed and stored in the updated Reorder Cluster.
630
+
631
+ In case of an error, the entire request is rejected and the existing state is
632
+ maintained.
633
+
634
+ #### `publishUserAccountManagementRequest`
635
+
636
+ This API is used to publish a Sign In card . The signin action directs users to
637
+ the app's sign in page so that the app can publish content (or provide more
638
+ personalized content)
639
+
640
+ The following metadata is part of the Sign In Card -
641
+
642
+ | Attribute | Requirement | Description |
643
+ |---|---|---|
644
+ | Action Uri | Required | Deeplink to Action (i.e. navigates to app sign in page) |
645
+ | Image | Optional - If not provided, Title must be provided | Image Shown on the Card 16x9 aspect ratio images with a resolution of 1264x712 |
646
+ | Title | Optional - If not provided, Image must be provided | Title on the Card |
647
+ | Action Text | Optional | Text Shown on the CTA (i.e. Sign in) |
648
+ | Subtitle | Optional | Optional Subtitle on the Card |
649
+
650
+ > [!IMPORTANT]
651
+ > **Important:** The publish APIs are upsert APIs; it replaces the existing content. **Don't** call delete and publish APIs subsequently to replace the content as the publish APIs do that inherently.
652
+
653
+ ### Kotlin
654
+
655
+ var SIGN_IN_CARD_ENTITY =
656
+ SignInCardEntity.Builder()
657
+ .addPosterImage(
658
+ Image.Builder()
659
+ .setImageUri(Uri.parse("http://www.x.com/image.png"))
660
+ .setImageHeightInPixel(500)
661
+ .setImageWidthInPixel(500)
662
+ .build())
663
+ .setActionText("Sign In")
664
+ .setActionUri(Uri.parse("http://xx.com/signin"))
665
+ .build()
666
+
667
+ client.publishUserAccountManagementRequest(
668
+ PublishUserAccountManagementRequest.Builder()
669
+ .setSignInCardEntity(SIGN_IN_CARD_ENTITY)
670
+ .build());
671
+
672
+ ### Java
673
+
674
+ SignInCardEntity SIGN_IN_CARD_ENTITY =
675
+ new SignInCardEntity.Builder()
676
+ .addPosterImage(
677
+ new Image.Builder()
678
+ .setImageUri(Uri.parse("http://www.x.com/image.png"))
679
+ .setImageHeightInPixel(500)
680
+ .setImageWidthInPixel(500)
681
+ .build())
682
+ .setActionText("Sign In")
683
+ .setActionUri(Uri.parse("http://xx.com/signin"))
684
+ .build();
685
+
686
+ client.publishUserAccountManagementRequest(
687
+ new PublishUserAccountManagementRequest.Builder()
688
+ .setSignInCardEntity(SIGN_IN_CARD_ENTITY)
689
+ .build());
690
+
691
+ When the service receives the request, the following actions take place within
692
+ one transaction:
693
+
694
+ - Existing `UserAccountManagementCluster` data from the developer partner is removed.
695
+ - Data from the request is parsed and stored in the updated UserAccountManagementCluster Cluster.
696
+
697
+ In case of an error, the entire request is rejected and the existing state is
698
+ maintained.
699
+
700
+ #### `updatePublishStatus`
701
+
702
+ If for any internal business reason, none of the clusters is published,
703
+ we **strongly recommend** updating the publish status using the
704
+ **updatePublishStatus** API.
705
+ This is important because :
706
+
707
+ - Providing the status in all scenarios, even when the content is published (STATUS == PUBLISHED), is critical to populate dashboards that use this explicit status to convey the health and other metrics of your integration.
708
+ - If no content is published but the integration status isn't broken (STATUS == NOT_PUBLISHED), Google can avoid triggering alerts in the app health dashboards. It confirms that content is not published due to an **expected** situation from the provider's standpoint.
709
+ - It helps developers provide insights into when the data is published versus not.
710
+ - Google may use the status codes to nudge the user to do certain actions in the app so they can see the app content or overcome it.
711
+
712
+ The list of eligible publish status codes are :
713
+
714
+ // Content is published
715
+ AppEngagePublishStatusCode.PUBLISHED,
716
+
717
+ // Content is not published as user is not signed in
718
+ AppEngagePublishStatusCode.NOT_PUBLISHED_REQUIRES_SIGN_IN,
719
+
720
+ // Content is not published as user is not subscribed
721
+ AppEngagePublishStatusCode.NOT_PUBLISHED_REQUIRES_SUBSCRIPTION,
722
+
723
+ // Content is not published as user location is ineligible
724
+ AppEngagePublishStatusCode.NOT_PUBLISHED_INELIGIBLE_LOCATION,
725
+
726
+ // Content is not published as there is no eligible content
727
+ AppEngagePublishStatusCode.NOT_PUBLISHED_NO_ELIGIBLE_CONTENT,
728
+
729
+ // Content is not published as the feature is disabled by the client
730
+ // Available in v1.3.1
731
+ AppEngagePublishStatusCode.NOT_PUBLISHED_FEATURE_DISABLED_BY_CLIENT,
732
+
733
+ // Content is not published as the feature due to a client error
734
+ // Available in v1.3.1
735
+ AppEngagePublishStatusCode.NOT_PUBLISHED_CLIENT_ERROR,
736
+
737
+ // Content is not published as the feature due to a service error
738
+ // Available in v1.3.1
739
+ AppEngagePublishStatusCode.NOT_PUBLISHED_SERVICE_ERROR,
740
+
741
+ // Content is not published due to some other reason
742
+ // Reach out to engage-developers@ before using this enum.
743
+ AppEngagePublishStatusCode.NOT_PUBLISHED_OTHER
744
+
745
+ If the content is not published due to a user not logged in,
746
+ Google would recommend publishing the Sign In Card.
747
+ If for any reason providers are not able to publish the Sign In Card
748
+ then we recommend calling the **updatePublishStatus** API
749
+ with the status code **NOT_PUBLISHED_REQUIRES_SIGN_IN**
750
+
751
+ ### Kotlin
752
+
753
+ client.updatePublishStatus(
754
+ PublishStatusRequest.Builder()
755
+ .setStatusCode(AppEngagePublishStatusCode.NOT_PUBLISHED_REQUIRES_SIGN_IN)
756
+ .build())
757
+
758
+ ### Java
759
+
760
+ client.updatePublishStatus(
761
+ new PublishStatusRequest.Builder()
762
+ .setStatusCode(AppEngagePublishStatusCode.NOT_PUBLISHED_REQUIRES_SIGN_IN)
763
+ .build());
764
+
765
+ #### `deleteRecommendationClusters`
766
+
767
+ This API is used to delete the content of Recommendation Clusters.
768
+
769
+ > [!IMPORTANT]
770
+ > **Important:** Delete APIs should only be called when there is no content to publish. **Don't** call delete and publish APIs subsequently to replace the content as the publish APIs do that inherently. Reach out to [`engage-developers@google.com`](mailto:engage-developers@google.com) before using delete APIs.
771
+
772
+ ### Kotlin
773
+
774
+ client.deleteRecommendationClusters()
775
+
776
+ ### Java
777
+
778
+ client.deleteRecommendationClusters();
779
+
780
+ When the service receives the request, it removes the existing data from the
781
+ Recommendation Clusters. In case of an error, the entire request is rejected
782
+ and the existing state is maintained.
783
+
784
+ > [!NOTE]
785
+ > **Note:** This api is available from version 1.1.0 onwards.
786
+
787
+ #### `deleteFeaturedCluster`
788
+
789
+ This API is used to delete the content of Featured Cluster.
790
+
791
+ > [!IMPORTANT]
792
+ > **Important:** Delete APIs should only be called when there is no content to publish. **Don't** call delete and publish APIs subsequently to replace the content as the publish APIs do that inherently. Reach out to [`engage-developers@google.com`](mailto:engage-developers@google.com) before using delete APIs.
793
+
794
+ ### Kotlin
795
+
796
+ client.deleteFeaturedCluster()
797
+
798
+ ### Java
799
+
800
+ client.deleteFeaturedCluster();
801
+
802
+ When the service receives the request, it removes the existing data from the
803
+ Featured Cluster. In case of an error, the entire request is rejected
804
+ and the existing state is maintained.
805
+
806
+ > [!NOTE]
807
+ > **Note:** This api is available from version 1.1.0 onwards.
808
+
809
+ #### `deleteFoodShoppingCartCluster`
810
+
811
+ This API is used to delete the content of Food Shopping Cart Cluster.
812
+
813
+ > [!IMPORTANT]
814
+ > **Important:** Delete APIs should only be called when there is no content to publish. **Don't** call delete and publish APIs subsequently to replace the content as the publish APIs do that inherently. Reach out to [`engage-developers@google.com`](mailto:engage-developers@google.com) before using delete APIs.
815
+
816
+ ### Kotlin
817
+
818
+ client.deleteFoodShoppingCartCluster()
819
+
820
+ ### Java
821
+
822
+ client.deleteFoodShoppingCartCluster();
823
+
824
+ When the service receives the request, it removes the existing data from the
825
+ Food Shopping Cart Cluster. In case of an error, the entire request is rejected
826
+ and the existing state is maintained.
827
+
828
+ > [!NOTE]
829
+ > **Note:** This api is availaile from version 1.1.0 onwards.
830
+
831
+ #### `deleteFoodShoppingListCluster`
832
+
833
+ This API is used to delete the content of Food Shopping List Cluster.
834
+
835
+ > [!IMPORTANT]
836
+ > **Important:** Delete APIs should only be called when there is no content to publish. **Don't** call delete and publish APIs subsequently to replace the content as the publish APIs do that inherently. Reach out to [`engage-developers@google.com`](mailto:engage-developers@google.com) before using delete APIs.
837
+
838
+ ### Kotlin
839
+
840
+ client.deleteFoodShoppingListCluster()
841
+
842
+ ### Java
843
+
844
+ client.deleteFoodShoppingListCluster();
845
+
846
+ When the service receives the request, it removes the existing data from the
847
+ Food Shopping List Cluster. In case of an error, the entire request is rejected
848
+ and the existing state is maintained.
849
+
850
+ > [!NOTE]
851
+ > **Note:** This api is available from version 1.1.0 onwards.
852
+
853
+ #### `deleteReorderCluster`
854
+
855
+ This API is used to delete the content of FoodReorderCluster.
856
+
857
+ > [!IMPORTANT]
858
+ > **Important:** Delete APIs should only be called when there is no content to publish. **Don't** call delete and publish APIs subsequently to replace the content as the publish APIs do that inherently. Reach out to [`engage-developers@google.com`](mailto:engage-developers@google.com) before using delete APIs.
859
+
860
+ ### Kotlin
861
+
862
+ client.deleteReorderCluster()
863
+
864
+ ### Java
865
+
866
+ client.deleteReorderCluster();
867
+
868
+ When the service receives the request, it removes the existing data from the
869
+ Reorder Cluster. In case of an error, the entire request is rejected
870
+ and the existing state is maintained.
871
+
872
+ > [!NOTE]
873
+ > **Note:** This api is available from version 1.1.0 onwards.
874
+
875
+ #### `deleteUserManagementCluster`
876
+
877
+ This API is used to delete the content of UserAccountManagement Cluster.
878
+
879
+ > [!IMPORTANT]
880
+ > **Important:** Delete APIs should only be called when there is no content to publish. **Don't** call delete and publish APIs subsequently to replace the content as the publish APIs do that inherently. Reach out to [`engage-developers@google.com`](mailto:engage-developers@google.com) before using delete APIs.
881
+
882
+ ### Kotlin
883
+
884
+ client.deleteUserManagementCluster()
885
+
886
+ ### Java
887
+
888
+ client.deleteUserManagementCluster();
889
+
890
+ When the service receives the request, it removes the existing data from the
891
+ UserAccountManagement Cluster. In case of an error, the entire request is
892
+ rejected and the existing state is maintained.
893
+
894
+ > [!NOTE]
895
+ > **Note:** This api is available from version 1.1.0 onwards.
896
+
897
+ #### `deleteClusters`
898
+
899
+ This API is used to delete the content of a given cluster type.
900
+
901
+ > [!IMPORTANT]
902
+ > **Important:** Delete APIs should only be called when there is no content to publish. **Don't** call delete and publish APIs subsequently to replace the content as the publish APIs do that inherently. Reach out to [`engage-developers@google.com`](mailto:engage-developers@google.com) before using delete APIs.
903
+
904
+ ### Kotlin
905
+
906
+ client.deleteClusters(
907
+ DeleteClustersRequest.Builder()
908
+ .addClusterType(ClusterType.TYPE_FEATURED)
909
+ .addClusterType(ClusterType.TYPE_RECOMMENDATION)
910
+ ...
911
+ .build())
912
+
913
+ ### Java
914
+
915
+ client.deleteClusters(
916
+ new DeleteClustersRequest.Builder()
917
+ .addClusterType(ClusterType.TYPE_FEATURED)
918
+ .addClusterType(ClusterType.TYPE_RECOMMENDATION)
919
+ ...
920
+ .build());
921
+
922
+ When the service receives the request, it removes the existing data from all
923
+ clusters matching the specified cluster types. Clients can choose to pass one or
924
+ many cluster types. In case of an error, the entire request is rejected and the
925
+ existing state is maintained.
926
+
927
+ #### Error handling
928
+
929
+ It is highly recommended to listen to the task result from the publish APIs such
930
+ that a follow-up action can be taken to recover and resubmit an successful task.
931
+
932
+ client.publishRecommendationClusters(
933
+ new PublishRecommendationClustersRequest.Builder()
934
+ .addRecommendationCluster(...)
935
+ .build())
936
+ .addOnCompleteListener(
937
+ task -> {
938
+ if (task.isSuccessful()) {
939
+ // do something
940
+ } else {
941
+ Exception exception = task.getException();
942
+ if (exception instanceof AppEngageException) {
943
+ @AppEngageErrorCode
944
+ int errorCode = ((AppEngageException) exception).getErrorCode();
945
+ if (errorCode == AppEngageErrorCode.SERVICE_NOT_FOUND) {
946
+ // do something
947
+ }
948
+ }
949
+ }
950
+ });
951
+
952
+ The error is returned as an `AppEngageException` with the cause included as an
953
+ error code.
954
+
955
+ | Error code | Error name | Note |
956
+ |---|---|---|
957
+ | `1` | `SERVICE_NOT_FOUND` | The service is not available on the given device. |
958
+ | `2` | `SERVICE_NOT_AVAILABLE` | The service is available on the given device, but it is not available at the time of the call (for example, it is explicitly disabled). |
959
+ | `3` | `SERVICE_CALL_EXECUTION_FAILURE` | The task execution failed due to threading issues. In this case, it can be retried. |
960
+ | `4` | `SERVICE_CALL_PERMISSION_DENIED` | The caller is not allowed to make the service call. |
961
+ | `5` | `SERVICE_CALL_INVALID_ARGUMENT` | The request contains invalid data (for example, more than the allowed number of clusters). |
962
+ | `6` | `SERVICE_CALL_INTERNAL` | There is an error on the service side. |
963
+ | `7` | `SERVICE_CALL_RESOURCE_EXHAUSTED` | The service call is made too frequently. |
964
+
965
+ ### Step 3: Handle broadcast intents
966
+
967
+ In addition to making publish content API calls through a job, it is also
968
+ required to set up a
969
+ [`BroadcastReceiver`](https://developer.android.com/reference/android/content/BroadcastReceiver) to receive
970
+ the request for a content publish.
971
+
972
+ The goal of broadcast intents is mainly for app reactivation and forcing data
973
+ sync. Broadcast intents are not designed to be sent very frequently. It is only
974
+ triggered when the Engage Service determines the content might be stale (for
975
+ example, a week old). That way, there is more confidence that the user can have
976
+ a fresh content experience, even if the application has not been executed for a
977
+ long period of time.
978
+
979
+ The `BroadcastReceiver` must be set up in the following two ways:
980
+
981
+ - Dynamically register an instance of the `BroadcastReceiver` class using
982
+ `Context.registerReceiver()`. This enables communication from applications
983
+ that are still live in memory.
984
+
985
+ ### Kotlin
986
+
987
+ class AppEngageBroadcastReceiver : BroadcastReceiver(){
988
+ // Trigger recommendation cluster publish when PUBLISH_RECOMMENDATION
989
+ // broadcast is received
990
+ // Trigger featured cluster publish when PUBLISH_FEATURED broadcast is
991
+ // received
992
+ // Trigger food shopping cart cluster publish when PUBLISH_FOOD_SHOPPING_CART broadcast
993
+ // is received
994
+ // Trigger food shopping list cluster publish when PUBLISH_FOOD_SHOPPING_LIST broadcast
995
+ // is received
996
+ // Trigger reorder cluster publish when PUBLISH_REORDER_CLUSTER broadcast is
997
+ // received
998
+ }
999
+
1000
+ fun registerBroadcastReceivers(context: Context){
1001
+ var context = context
1002
+ context = context.applicationContext
1003
+
1004
+ // Register Recommendation Cluster Publish Intent
1005
+ context.registerReceiver(AppEngageBroadcastReceiver(),
1006
+ IntentFilter(Intents.ACTION_PUBLISH_RECOMMENDATION),
1007
+ com.google.android.engage.service.BroadcastReceiverPermissions.BROADCAST_REQUEST_DATA_PUBLISH_PERMISSION,
1008
+ /*scheduler=*/null)
1009
+
1010
+ // Register Featured Cluster Publish Intent
1011
+ context.registerReceiver(AppEngageBroadcastReceiver(),
1012
+ IntentFilter(Intents.ACTION_PUBLISH_FEATURED),
1013
+ com.google.android.engage.service.BroadcastReceiverPermissions.BROADCAST_REQUEST_DATA_PUBLISH_PERMISSION,
1014
+ /*scheduler=*/null)
1015
+
1016
+ // Register food Shopping Cart Cluster Publish Intent
1017
+ context.registerReceiver(AppEngageBroadcastReceiver(),
1018
+ IntentFilter(Intents.ACTION_PUBLISH_FOOD_SHOPPING_CART),
1019
+ com.google.android.engage.service.BroadcastReceiverPermissions.BROADCAST_REQUEST_DATA_PUBLISH_PERMISSION,
1020
+ /*scheduler=*/null)
1021
+
1022
+ // Register food Shopping List Cluster Publish Intent
1023
+ context.registerReceiver(AppEngageBroadcastReceiver(),
1024
+ IntentFilter(Intents.ACTION_PUBLISH_FOOD_SHOPPING_LIST),
1025
+ com.google.android.engage.service.BroadcastReceiverPermissions.BROADCAST_REQUEST_DATA_PUBLISH_PERMISSION,
1026
+ /*scheduler=*/null)
1027
+
1028
+ // Register Reorder Cluster Publish Intent
1029
+ context.registerReceiver(AppEngageBroadcastReceiver(),
1030
+ IntentFilter(Intents.ACTION_PUBLISH_REORDER_CLUSTER),
1031
+ com.google.android.engage.service.BroadcastReceiverPermissions.BROADCAST_REQUEST_DATA_PUBLISH_PERMISSION,
1032
+ /*scheduler=*/null)
1033
+ }
1034
+
1035
+ ### Java
1036
+
1037
+ class AppEngageBroadcastReceiver extends BroadcastReceiver {
1038
+ // Trigger recommendation cluster publish when PUBLISH_RECOMMENDATION broadcast
1039
+ // is received
1040
+
1041
+ // Trigger featured cluster publish when PUBLISH_FEATURED broadcast is received
1042
+
1043
+ // Trigger food shopping cart cluster publish when PUBLISH_FOOD_SHOPPING_CART broadcast is
1044
+ // received
1045
+
1046
+ // Trigger food shopping list cluster publish when PUBLISH_FOOD_SHOPPING_LIST broadcast is
1047
+ // received
1048
+
1049
+ // Trigger reorder cluster publish when PUBLISH_REORDER_CLUSTER broadcast is
1050
+ // received
1051
+ }
1052
+
1053
+ public static void registerBroadcastReceivers(Context context) {
1054
+
1055
+ context = context.getApplicationContext();
1056
+
1057
+ // Register Recommendation Cluster Publish Intent
1058
+ context.registerReceiver(new AppEngageBroadcastReceiver(),
1059
+ new IntentFilter(com.google.android.engage.service.Intents.ACTION_PUBLISH_RECOMMENDATION),
1060
+ com.google.android.engage.service.BroadcastReceiverPermissions.BROADCAST_REQUEST_DATA_PUBLISH_PERMISSION,
1061
+ /*scheduler=*/null);
1062
+
1063
+ // Register Featured Cluster Publish Intent
1064
+ context.registerReceiver(new AppEngageBroadcastReceiver(),
1065
+ new IntentFilter(com.google.android.engage.service.Intents.ACTION_PUBLISH_FEATURED),
1066
+ com.google.android.engage.service.BroadcastReceiverPermissions.BROADCAST_REQUEST_DATA_PUBLISH_PERMISSION,
1067
+ /*scheduler=*/null);
1068
+
1069
+ // Register food Shopping Cart Cluster Publish Intent
1070
+ context.registerReceiver(new AppEngageBroadcastReceiver(),
1071
+ new IntentFilter(com.google.android.engage.shopping.service.Intents.ACTION_PUBLISH_FOOD_SHOPPING_CART),
1072
+ com.google.android.engage.service.BroadcastReceiverPermissions.BROADCAST_REQUEST_DATA_PUBLISH_PERMISSION,
1073
+ /*scheduler=*/null);
1074
+
1075
+ // Register food Shopping List Cluster Publish Intent
1076
+ context.registerReceiver(new AppEngageBroadcastReceiver(),
1077
+ new IntentFilter(com.google.android.engage.shopping.service.Intents.ACTION_PUBLISH_FOOD_SHOPPING_LIST),
1078
+ com.google.android.engage.service.BroadcastReceiverPermissions.BROADCAST_REQUEST_DATA_PUBLISH_PERMISSION,
1079
+ /*scheduler=*/null);
1080
+
1081
+ // Register Reorder Cluster Publish Intent
1082
+ context.registerReceiver(new AppEngageBroadcastReceiver(),
1083
+ new IntentFilter(com.google.android.engage.shopping.service.Intents.ACTION_PUBLISH_REORDER_CLUSTER),
1084
+ com.google.android.engage.service.BroadcastReceiverPermissions.BROADCAST_REQUEST_DATA_PUBLISH_PERMISSION,
1085
+ /*scheduler=*/null);
1086
+
1087
+ }
1088
+
1089
+ - Statically declare an implementation with the `<receiver>` tag in your
1090
+ `AndroidManifest.xml` file. This allows the application to receive broadcast
1091
+ intents when it is not running, and also allows the application to publish
1092
+ the content.
1093
+
1094
+ <application>
1095
+ <receiver
1096
+ android:name=".AppEngageBroadcastReceiver"
1097
+ android:permission="com.google.android.engage.REQUEST_ENGAGE_DATA"
1098
+ android:exported="true"
1099
+ android:enabled="true">
1100
+ <intent-filter>
1101
+ <action android:name="com.google.android.engage.action.PUBLISH_RECOMMENDATION" />
1102
+ </intent-filter>
1103
+ <intent-filter>
1104
+ <action android:name="com.google.android.engage.action.PUBLISH_FEATURED" />
1105
+ </intent-filter>
1106
+ <intent-filter>
1107
+ <action android:name="com.google.android.engage.action.food.PUBLISH_FOOD_SHOPPING_CART" />
1108
+ </intent-filter>
1109
+ <intent-filter>
1110
+ <action android:name="com.google.android.engage.action.food.PUBLISH_FOOD_SHOPPING_LIST" />
1111
+ </intent-filter>
1112
+ <intent-filter>
1113
+ <action android:name="com.google.android.engage.action.food.PUBLISH_REORDER_CLUSTER" />
1114
+ </intent-filter>
1115
+ </receiver>
1116
+ </application>
1117
+
1118
+ The following [intents](https://developer.android.com/reference/android/content/Intent) will be sent by the
1119
+ service:
1120
+
1121
+ - `com.google.android.engage.action.PUBLISH_RECOMMENDATION` It is recommended to start a `publishRecommendationClusters` call when receiving this intent.
1122
+ - `com.google.android.engage.action.PUBLISH_FEATURED` It is recommended to start a `publishFeaturedCluster` call when receiving this intent.
1123
+ - `com.google.android.engage.action.food.PUBLISH_FOOD_SHOPPING_CART` It is recommended to start a `publishFoodShoppingCarts` call when receiving this intent.
1124
+ - `com.google.android.engage.action.food.PUBLISH_FOOD_SHOPPING_LIST` It is recommended to start a `publishFoodShoppingLists` call when receiving this intent.
1125
+ - `com.google.android.engage.action.food.PUBLISH_REORDER_CLUSTER` It is recommended to start a `publishReorderCluster` call when receiving this intent.
1126
+
1127
+ ## Integration workflow
1128
+
1129
+ For a step-by-step guide on verifying your integration after it is complete, see
1130
+ [Engage developer integration workflow](https://developer.android.com/guide/playcore/engage/workflow).
1131
+
1132
+ ## FAQs
1133
+
1134
+ See [Engage SDK Frequently Asked Questions](https://developer.android.com/guide/playcore/engage/faq) for
1135
+ FAQs.
1136
+
1137
+ ## Contact
1138
+
1139
+ Contact [`engage-developers@google.com`](mailto:engage-developers@google.com) if there are any questions during
1140
+ the integration process. Our team will reply as soon as possible.
1141
+
1142
+ ## Next steps
1143
+
1144
+ After completing this integration, your next steps are as follows:
1145
+
1146
+ - Send an email to [`engage-developers@google.com`](mailto:engage-developers@google.com) and attach your integrated APK that is ready for testing by Google.
1147
+ - Google will perform a verification and review internally to make sure the integration works as expected. If changes are needed, Google will contact you with any necessary details.
1148
+ - When testing is complete and no changes are needed, Google will contact you to notify you that you can start publishing the updated and integrated APK to the Play Store.
1149
+ - After Google has confirmed that your updated APK has been published to the Play Store, your **Recommendation** , **Featured** , **Shopping Cart** , **Shopping List** , and **Reorder** clusters will be published and visible to users.