Fixed
Status Update
Comments
ne...@google.com <ne...@google.com>
ne...@google.com <ne...@google.com> #2
Thanks for reporting this issue. We are checking this issue now.
[Deleted User] <[Deleted User]> #3
Hi Leon, this is the issue in CAF. It is working in v2(messagebus), but not working in CAF. addCustomMessageListener is only receiving numbers, from both iOS and Android sender app.
ja...@rockett.net <ja...@rockett.net> #4
I just experienced the same issue initially, but when I changed my message from a regular string to an object -- i.e. {"msg":"testing..."} -- it worked for me.
br...@enviedsolutions.com <br...@enviedsolutions.com> #5
Why does sendCustomMessage have 4 parameters? I'm using 3 (no 'Message Invoked v3' parameter):
sendCustomMessage('urn:x-cast:com.musicblobs.receiver', senderId[0], {
type: 'status',
message: message
});
It's not working though... still looking for a solution. Will follow this...
sendCustomMessage('urn:x-cast:com.musicblobs.receiver', senderId[0], {
type: 'status',
message: message
});
It's not working though... still looking for a solution. Will follow this...
br...@enviedsolutions.com <br...@enviedsolutions.com> #6
@ja...@rocket.net - could you paste your code that it's working with the object in the code?
ne...@google.com <ne...@google.com> #7
In CAF by default the message bus is of type json, so the receiver try to parse the string as json.
The type of the message bus can be provided in the options:
https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.CastReceiverOptions#customNamespaces
So to use non json message bus add the next to the start options.
options.customNamespaces = { 'urn:x-cast:testChannel': 'STRING' }
The type of the message bus can be provided in the options:
So to use non json message bus add the next to the start options.
options.customNamespaces = { 'urn:x-cast:testChannel': 'STRING' }
ac...@gmail.com <ac...@gmail.com> #8
I'm getting this error "Invalid messageType for the namespace" when using the type "STRING". It works fine when using JSON
is...@google.com <is...@google.com>
dk...@gmail.com <dk...@gmail.com> #9
I am having the same issue as above: "I'm getting this error "Invalid messageType for the namespace" when using the type "STRING". It works fine when using JSON", is this an issue on my end?
ga...@gmail.com <ga...@gmail.com> #10
I am having the same issue too.
st...@willowtreeapps.com <st...@willowtreeapps.com> #11
I'm also having this issue. Please advice on a solution.
oz...@google.com <oz...@google.com>
[Deleted User] <[Deleted User]> #12
I am having the same issue too.
ar...@google.com <ar...@google.com> #13
In CAF by default the message bus is of type json, so the receiver try to parse the string as json.
The type of the message bus can be provided in the options:
https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.CastReceiverOptions#customNamespaces
So to use non json message bus add the next to the start options.
options.customNamespaces = { 'urn:x-cast:testChannel': 'STRING' }
See here for more information:https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.system#.MessageType
Let us know if this helps.
Thanks
The type of the message bus can be provided in the options:
So to use non json message bus add the next to the start options.
options.customNamespaces = { 'urn:x-cast:testChannel': 'STRING' }
See here for more information:
Let us know if this helps.
Thanks
ar...@google.com <ar...@google.com> #14
We are closing down the bugs as a part of triage. Hope the information provided in comment#13 helps. If not, feel free to open the bug.
Thanks
Thanks
Description
but we can only send NUMBERS as a custom message ex: 123,45, etc
when we try to attach any string content eg: hello,hello122 or any character the receiver side does not get any message.
We have executed the following code :
try {
const channel = "urn:x-cast:testChannel";
const iframe = document.getElementById("frame");
const node = document.getElementById("message");
const ctx = cast.framework.CastReceiverContext.getInstance();
node.innerHTML = 'test1';
ctx.addCustomMessageListener(channel, (evt) => {
node.innerHTML = 'test...';
ctx.sendCustomMessage('urn:x-cast:testChannel', evt.senderId, 'Message Invoked v3', (data) => {
document.getElementById("message").innerHTML = 'message sent';
iframe.src = "
node.innerHTML = 'Message sent '
})
node.innerHTML = evt.senderId+ ' test ' +JSON.stringify(evt);
alert('here');
})
ctx.start();
} catch (e) {
document.getElementById("message").innerHTML = JSON.stringify(e);
}