I have been trying to use the Message Port api in my project to communicate between a native service app and a native ui app. Following the development guide and the code examples, I included the necessary header files and implemented the functions for sending a bundle over the message port.
The issue i'm facing now is that I get a compilation error of "too many arguments to function call for the following functions: message_port_check_trusted_remote_port()
message_port_send_message()
The error claims that it expects 2 arguments and I am providing 3 arguments. However, the api documentation, the function definition, and the code examples all show three arguments needing to be passed. I was able to get the sample project working on it's own. The issue arises when I try to use the message port functions in my existing project, which has several other libraries being used. This makes me suspect that one of the other libraries i am using is interfering with the message port library.
Has anyone else experienced this or something similar?