Expand my Community achievements bar.

Join our product experts for a live Ask Me Anything on November 12th at 8 AM PT about Experiences & Efficiency with AEP Agent Orchestrator & How Agentic AI is Fueling Smarter Testing and Growth!
SOLVED

getting offers with Mobile SDK - which method to use

Avatar

Level 10

I see two main methods:

1. getPropositions() - This API retrieves the previously fetched propositions, for the provided decision scopes, from the in-memory extension propositions cache.

As I understand its not new request but it takes what is already in Cache? Does it also include capping?

2. updatePropositionsWithCompletionHandler() - this one gets propositions if there is nothing in Cache?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 6

Yes, you’re right.

getPropositions() allows re-rendering of propositions that were already rendered using the sendEvent command (it doesn’t make a new network call).

updatePropositionsWithCompletionHandler() fetches fetch decision propositions, the returned decision propositions are cached in-memory which can be retrieved using getPropositions.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 6

Yes, you’re right.

getPropositions() allows re-rendering of propositions that were already rendered using the sendEvent command (it doesn’t make a new network call).

updatePropositionsWithCompletionHandler() fetches fetch decision propositions, the returned decision propositions are cached in-memory which can be retrieved using getPropositions.