Skip to main content
Answered

Running callbacks to users not logged in

  • August 9, 2020
  • 2 replies
  • 501 views

Forum|alt.badge.img+2

I have a plugin that generates objects to aid in workshops online and providing visual aids to them on Miro, the object creation itself is done by a logged in user, but I want to do some updates to a card object that are done by users who are joining in that are not logged in.

I just want to change the color and rotation of a card, is this possible?

I’ved added 

 

async function checkCardMovments( widget_id ){

        await miro.board.widgets.update({ id: widget_id, 
                                          rotation: 0,
                                          style: { backgroundColor: '#FCEEF0'} })

}

  miro.onReady(() => {
    miro.addListener('WIDGETS_TRANSFORMATION_UPDATED', (e) => {

        if( (e.data.length == 1) && ( e.data[0].type == 'CARD' ) ){
            checkCardMovments(e.data[0].id)
        }
    })
  }

 

to the miro.onReady of the js file that is initializing the plugin, it works fine if I am a logged in user but the callback doesn’t seem to run at all if its an anon user.

Best answer by farbodsaraf

Hi there - Thanks for your question. Plugins do not currently support users that are not part of the board’s team. Hopefully we’ll offer this in the future. Thanks!

2 replies

farbodsaraf
Mironeer
Forum|alt.badge.img+1
  • Mironeer
  • 22 replies
  • Answer
  • August 10, 2020

Hi there - Thanks for your question. Plugins do not currently support users that are not part of the board’s team. Hopefully we’ll offer this in the future. Thanks!


Forum|alt.badge.img+2
  • Author
  • Beginner
  • 6 replies
  • August 14, 2020

Hi there - Thanks for your question. Plugins do not currently support users that are not part of the board’s team. Hopefully we’ll offer this in the future. Thanks!

Thanks we are working out some of the finishing touches to a demo app so, I’ll be flooding the forum with questions, my apologies for it, thank you for the response.