Skip to content

Conversation

@jinleileiking
Copy link

No description provided.

Copy link
Owner

@fgerschau fgerschau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for your contribution!

The title says that you want to add logs for learning, however, you also made some other changes that are probably unintentional (such as changing the vapid keys, some blank spaces, etc.).

If you want to merge this PR, I'd suggest you undo these changes first. I would also appreciate if you could make the logs more verbose by stating what you are logging together with the data.

notifications.push(webpush.sendNotification(subscription, JSON.stringify(notification)));
console.log(`sub:${subscription}`);
const options = {
proxy: 'http://localhost:7890',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you add this? Will this work for others as well?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is a example for people need a proxy :)

const data = e.data.json();
self.registration.showNotification(data.title, {
body: data.body,
icon: data.icon,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove these options?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I debug: data.boy add data.icon is null

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

Successfully merging this pull request may close these issues.

2 participants