isGrantFailedReason static method

bool isGrantFailedReason(
  1. String reason
)

A failed grantChance call reports game_grant_failed, never game_open_failed: it offered nothing to open. Only these three fail reasons are grant failures. Port of Android's requestPlayDecision split.

Implementation

static bool isGrantFailedReason(String reason) =>
    reason == PlaySession.failNetwork ||
    reason == PlaySession.failTimeout ||
    reason == PlaySession.failInvalidResponse;