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

iFrame command showNotification type error #15503

Open
2 of 11 tasks
felipeavilis opened this issue Jan 17, 2025 · 3 comments
Open
2 of 11 tasks

iFrame command showNotification type error #15503

felipeavilis opened this issue Jan 17, 2025 · 3 comments

Comments

@felipeavilis
Copy link
Contributor

What happened?

IFrame API command showNotification code and documentation says that it has info type, but it does not. Got an error trying too use it.

<button onclick="api.executeCommand('showNotification', {
    title: 'Notification Title ',
    description: 'Notification - info - short',
    uid: 'uid00001',
    type: 'info',
    timeout: 'short' 
})">Notification Test</button>

Platform

  • Chrome (or Chromium based)
  • Firefox
  • Safari
  • Other desktop browser
  • Android browser
  • iOS browser
  • Electron app
  • Android mobile app
  • iOS mobile app
  • Custom app using a mobile SDK

Browser / app / sdk version

131.0.6778.265

Relevant log output

[modules/API/API.js] <show-notification>:  Invalid notification type "info". Expecting one of error,normal,success,warning
r                  @ Logger.js:155
show-notification  @ API.js:610
(anônimo)          @ API.js:890
(anônimo)          @ Transport.js:128
emit               @ Transport.js:127
_onMessageReceived @ Transport.js:98
(anônimo)          @ PostMessageTransportBackend.js:43
p                  @ postis.js:57

Reproducibility

  • The problem is reproducible on meet.jit.si

More details?

Documentation:
Image
https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-iframe-commands#shownotification

Code:

export const NOTIFICATION_TYPE = {

@damencho
Copy link
Member

Can you create a PR against https://github.com/jitsi/handbook? Thanks.

@felipeavilis
Copy link
Contributor Author

felipeavilis commented Jan 17, 2025

Can you create a PR against https://github.com/jitsi/handbook? Thanks.

Sure! The comments in API.js could also be changed imho.

* @param { string } arg.type - Notification type, either `error`, `info`, `normal`, `success` or `warning`.

@felipeavilis
Copy link
Contributor Author

PRs created.

handbook - jitsi/handbook#555
jitsi-meet - #15504

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

2 participants