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

About push notification #89

Open
Wbqqqq opened this issue Sep 15, 2024 · 0 comments
Open

About push notification #89

Wbqqqq opened this issue Sep 15, 2024 · 0 comments

Comments

@Wbqqqq
Copy link

Wbqqqq commented Sep 15, 2024

Sir~ firstly, thank you for providing such a great library.
I just have a question about push notification.
Your creation and updates are both done using userdefault.
Actually, LiveActivitiesAppAttributes is just a shell, and its attributes are not obtained from it.
So, I saw the issue push body like this:

  const notificationBody = {
    aps: {
      timestamp: notificationTime.seconds,
      event: 'update',
      'dismissal-date': endTime,
      'content-state': {
        heading: 'Awaiting Results',
        description: prediction.text,
        state: 'awaiting_results',
        timerStartDate: notificationTime.seconds,
        timerEndDate: predictionEndTime,
        userProfilePicture: imageUrl,
      },
      alert: { title, body },
    },
  };

If App was killed, how does the app know these attributes?
Look forward to your reply, Thanks again

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