istornz / flutter_live_activities

A Flutter plugin to use iOS 16.1+ Live Activities ⛹️ & iPhone Dynamic Island 🏝️ features
https://dimitridessus.fr/
MIT License
161 stars 48 forks source link

Activity update: EndedActivityUpdate(activityId: "Some ID") as soon as i create an activity i get this log for some reason using the default app sample widget #72

Closed OmerTrainer closed 7 months ago

OmerTrainer commented 7 months ago

problem was solved make sure to make app group id capability on all modes

adham-ashraf77 commented 3 months ago

@OmerTrainer I got the same error any help?

OmerTrainer commented 3 months ago

just make sure the main runner app is configured correctly with the app-group id capability

@OmerTrainer I got the same error any help?

adham-ashraf77 commented 3 months ago

just make sure the main runner app is configured correctly with the app-group id capability

@OmerTrainer I got the same error any help?

I make sure that are the same group id what else should I see I want to show the default view only now

adham-ashraf77 commented 3 months ago

WhatsApp Image 2024-06-12 at 10 21 33_f3a3fe24 WhatsApp Image 2024-06-12 at 10 21 33_d20b61d1

OmerTrainer commented 3 months ago

WhatsApp Image 2024-06-12 at 10 21 33_f3a3fe24 WhatsApp Image 2024-06-12 at 10 21 33_d20b61d1

the problem i had is that i wrongfully added App Groups capability not to my main app runner i can't tell if you did that by the screenshot that you provided but if you configured it right then the problem should be somewhere else

adham-ashraf77 commented 3 months ago

@OmerTrainer can we get a quick meeting if you have a time ?

OmerTrainer commented 3 months ago

problem was solved make sure to make app group id capability on all modes

yes, but i would prefer to help you in this thread so everyone that encounters this can enjoy the solution.

OmerTrainer commented 3 months ago

Screenshot 2024-06-12 at 10 43 12 make sure "All" is selected when you add the capability both on the main runner app and the live activity extenstion

adham-ashraf77 commented 3 months ago

problem was solved make sure to make app group id capability on all modes

yes, but i would prefer to help you in this thread so everyone that encounters this can enjoy the solution.

yes I will make sure I write the solution after solve it can you connect me at adhamashraf51@gmail.com

adham-ashraf77 commented 3 months ago

flutter: F0821F95-CCAD-43F2-A073-329811474699 flutter: Activity update: EndedActivityUpdate(activityId: F0821F95-CCAD-43F2-A073-329811474699) final activityId = await _liveActivitiesPlugin .createActivity({}); @OmerTrainer

OmerTrainer commented 3 months ago

dhamashraf51@gmail.com

why are you passing an empty map "{}" as a paremeter when creating an activity ? make sure first you can run the sample project see if it works correctly

adham-ashraf77 commented 3 months ago

dhamashraf51@gmail.com

why are you passing an empty map "{}" as a paremeter when creating an activity ? make sure first you can run the sample project see if it works correctly

I want to show only the default view

OmerTrainer commented 3 months ago

dhamashraf51@gmail.com

why are you passing an empty map "{}" as a paremeter when creating an activity ? make sure first you can run the sample project see if it works correctly

I want to show only the default view

The "Default" view also requires some params.... Look at the "Content-State" in the liveactivity extension to see what params you need to pass

adham-ashraf77 commented 3 months ago

dhamashraf51@gmail.com

why are you passing an empty map "{}" as a paremeter when creating an activity ? make sure first you can run the sample project see if it works correctly

I want to show only the default view

The "Default" view also requires some params.... Look at the "Content-State" in the liveactivity extension to see what params you need to pass

WhatsApp Image 2024-06-12 at 11 20 09_61945320

this is my live activity @OmerTrainer

OmerTrainer commented 3 months ago

dhamashraf51@gmail.com

why are you passing an empty map "{}" as a paremeter when creating an activity ? make sure first you can run the sample project see if it works correctly

I want to show only the default view

The "Default" view also requires some params.... Look at the "Content-State" in the liveactivity extension to see what params you need to pass

WhatsApp Image 2024-06-12 at 11 20 09_61945320

this is my live activity @OmerTrainer

you need to provide "emoji" and "name" or just delete all the fields and make an hard coded view that doesn't relay on the params

adham-ashraf77 commented 3 months ago

dhamashraf51@gmail.com

why are you passing an empty map "{}" as a paremeter when creating an activity ? make sure first you can run the sample project see if it works correctly

I want to show only the default view

The "Default" view also requires some params.... Look at the "Content-State" in the liveactivity extension to see what params you need to pass

WhatsApp Image 2024-06-12 at 11 20 09_61945320 this is my live activity @OmerTrainer

you need to provide "emoji" and "name" or just delete all the fields and make an hard coded view that doesn't relay on the params

how to provide them please?

OmerTrainer commented 3 months ago

dhamashraf51@gmail.com

why are you passing an empty map "{}" as a paremeter when creating an activity ? make sure first you can run the sample project see if it works correctly

I want to show only the default view

The "Default" view also requires some params.... Look at the "Content-State" in the liveactivity extension to see what params you need to pass

WhatsApp Image 2024-06-12 at 11 20 09_61945320 this is my live activity @OmerTrainer

you need to provide "emoji" and "name" or just delete all the fields and make an hard coded view that doesn't relay on the params

how to provide them please?

await _liveActivitiesPlugin .createActivity({"emoji": "sample","name": "sampleName"});

adham-ashraf77 commented 3 months ago

WhatsApp Image 2024-06-12 at 11 40 20_dd67b512 same result no changes @OmerTrainer

OmerTrainer commented 3 months ago

WhatsApp Image 2024-06-12 at 11 40 20_dd67b512 same result no changes @OmerTrainer

you might consider researching a bit more on how it works before trying to implement it. first try to build the sample project that is provided with the package

adham-ashraf77 commented 3 months ago

WhatsApp Image 2024-06-12 at 11 40 20_dd67b512 same result no changes @OmerTrainer

you might consider researching a bit more on how it works before trying to implement it. first try to build the sample project that is provided with the package

I really tried many times don't know what is the real issue if you have some time please connect me at adhamashraf51@gmail.com

OmerTrainer commented 3 months ago

WhatsApp Image 2024-06-12 at 11 40 20_dd67b512 same result no changes @OmerTrainer

you might consider researching a bit more on how it works before trying to implement it. first try to build the sample project that is provided with the package

I really tried many times don't know what is the real issue if you have some time please connect me at adhamashraf51@gmail.com

you can reach me out at omertrainer3402@gmail.com i will try to do my best to help :)

adham-ashraf77 commented 3 months ago

[ERROR:flutter/shell/common/shell.cc(1055)] The 'live_activities/activity_status' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel. See https://docs.flutter.dev/platform-integration/platform-channels#channels-and-platform-threading for more information.

@OmerTrainer new error