cordova-music-controls-plugin icon indicating copy to clipboard operation
cordova-music-controls-plugin copied to clipboard

iOS - Invalid Callback ID

Open dupphil opened this issue 5 years ago • 8 comments

Dear,

I just created a new app on ionic. cordova-plugin-music-controls 2.2.0 installed.

Everything works on Android but when I use iOS, I got the error "Invalid Callback ID received by sendPluginResult."

Any idea ? Thanks Philippe

dupphil avatar Mar 26 '19 10:03 dupphil

Same problem here.

ramoncarreras avatar Mar 29 '19 07:03 ramoncarreras

Same here

IllesAprod avatar Apr 08 '19 13:04 IllesAprod

@dupphil @ramoncarreras any update on this?

IllesAprod avatar Apr 10 '19 18:04 IllesAprod

Switching to CDVUIWebViewEngine solved the problem for me.

silencio avatar Apr 12 '19 08:04 silencio

If you write this code after initialization, will work. MusicControls.listen();

blkd13 avatar May 05 '19 17:05 blkd13

image It could fix "Invalid Callback ID received by sendPluginResult"

huybuidac avatar May 12 '19 02:05 huybuidac

Switching to CDVUIWebViewEngine solved the problem for me.

UIwebview is deprecated and slow unfortunately. I wouldn't recommend this despite the multitude of issues wkwebview has it is still better.

ghenry22 avatar May 13 '19 06:05 ghenry22

If you write this code after initialization, will work. MusicControls.listen();

Also try this as advised above by @blkd13

ghenry22 avatar May 13 '19 06:05 ghenry22