Skip to content

Game Center APIs fail with error (failed_to_load_achievements and failed_to_send_achievement) #240

Description

@munish-techindustan

Package version: 5.0.0
Flutter version: 3.35.3
Platform: iOS

Errors:

loadAchievements()

PlatformException(
  failed_to_load_achievements,
  A server with the specified hostname could not be found.,
  ...
)

unlock() / achievement report

PlatformException(
  failed_to_send_achievement,
  A server with the specified hostname could not be found.,
  ...
)

Where they throw:

failed_to_load_achievements → Achievements.loadAchievements() in darwin/Classes/Achievements.swift when GKAchievement.loadAchievements() fails

failed_to_send_achievement → Achievements.report() in darwin/Classes/Achievements.swift when GKAchievement.report() fails

Steps to reproduce:

  • Sign in to Game Center on device
  • Call GamesServices.loadAchievements() and/or GamesServices.unlock()
  • Error occurs when Apple Game Center servers cannot be reached

Expected: Achievements load and/or report successfully

Actual: PlatformException with hostname/DNS error

Notes: Not affecting all users, but failing for a significant number of users

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions