Skip to content

add more logs for learning #2

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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 :)

@@ -1,7 +1,6 @@
self.addEventListener('push', (e) => {
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