Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start Live Activity with LiveActivityImageFromUrl #81

Open
lazarohcm opened this issue May 10, 2024 · 0 comments
Open

Unable to start Live Activity with LiveActivityImageFromUrl #81

lazarohcm opened this issue May 10, 2024 · 0 comments

Comments

@lazarohcm
Copy link

lazarohcm commented May 10, 2024

I'm unable to start an activity when using LiveActivityImageFromUrl.

It can be reproduced with the example project, just update any of the team's logos with an image from URL and it will prevent the creation of an activity.

Here is an example of the code I used in the example project to create and activity that breaks it

footballGameLiveActivityModel = FootballGameLiveActivityModel(
  matchName: 'World cup ⚽️',
  teamAName: 'PSG',
  teamAState: 'Home',
  teamALogo: LiveActivityImageFromUrl(
      "https://www.shutterstock.com/image-vector/bart-simpson-cartoon-character-editorial-600nw-2392134361.jpg"),
  teamBLogo: LiveActivityImageFromAsset(
    'assets/images/chelsea.png',
  ),
  teamBName: 'Chelsea',
  teamBState: 'Guest',
  matchStartDate: DateTime.now(),
  matchEndDate: DateTime.now().add(
    const Duration(
      minutes: 6,
      seconds: 30,
    ),
  ),
);

Is anyone else facing this issue or able to reproduce it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant