fetchInboxMessagesWithoutToken static method

Future<Inbox> fetchInboxMessagesWithoutToken(
  1. String externalUserId,
  2. FilterOptions filterOptions
)

Fetches messages from Inbox without token - recommended only for sandbox applications. For production apps use fetchInboxMessages with token. Requires externalUserId, and filterOptions.

Example:

var inbox = await fetchInboxMessagesWithoutToken('yourId', FilterOptions());

Implementation

static Future<Inbox> fetchInboxMessagesWithoutToken(
    String externalUserId, FilterOptions filterOptions) async {
  return Inbox.fromJson(jsonDecode(await _channel.invokeMethod(
    'fetchInboxMessagesWithoutToken',
    {
      'externalUserId': externalUserId,
      'filterOptions': jsonEncode(filterOptions.toJson()),
    },
  )));
}