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

Allow to test push notifications #620

Merged

Conversation

nickvergessen
Copy link
Member

Example output:

$ occ notification:test-push admin 
Trying to push to 2 devices

Language is set to en
Private user key size: 1704
Public user key size: 451

Device token:9
Device public key size: 451
Data to encrypt is: {"nid":61,"app":"admin_notifications","subject":"Testing push notifications","type":"admin_notifications","id":"5e95bfdb"}
Signed encrypted push subject

Device token:11
Skipping talk device for non-talk notification
$ occ notification:test-push admin --talk
Trying to push to 2 devices

Language is set to en
Private user key size: 1704
Public user key size: 451

Device token:9
Skipping other device for talk notification because a talk app is available

Device token:11
Device public key size: 451
Data to encrypt is: {"nid":62,"app":"admin_notification_talk","subject":"Testing push notifications","type":"admin_notifications","id":"5e95bfdd"}
Signed encrypted push subject

Should help to find the problems e.g. with #619

Signed-off-by: Joas Schilling <coding@schilljs.com>
Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

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

Didn't test but seems sane

@rullzer rullzer mentioned this pull request Apr 23, 2020
11 tasks
@nickvergessen nickvergessen merged commit 87ed718 into master Apr 23, 2020
@nickvergessen nickvergessen deleted the feature/noid/allow-to-test-notifications-better branch April 23, 2020 07:18
nickvergessen added a commit that referenced this pull request Apr 23, 2020
Signed-off-by: Joas Schilling <coding@schilljs.com>
nickvergessen added a commit that referenced this pull request Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants