appbuilder and signalr 2.1.1

2 posts, 0 answers
  1. Dave
    Dave avatar
    32 posts
    Member since:
    Feb 2008

    Posted 17 Dec 2014 Link to this post

    Just running some demo code found here ( using jquery.signalR-2.1.1.min.js versus the original demo code's  jquery.signalr-1.1.3.min.js.  After creating a backend service using signalR-2.1.1 which includes a Read() method...   the app builds in the Simulator but any attempts to populate a kendoGrid with data fails with this error:

    XMLHttpRequest cannot load Credentials flag is 'true', but the 'Access-Control-Allow-Credentials' header is ''. It must be 'true' to allow credentials.  
    ... and the Grid fails to render the records.

    Meanwhile a deployed app to both Android and Ipad tablets do render the Grid with data.  However, none of the SignalR goodness is as expected.   Do you have any example(s) using this or later versions of SignalR or have a workaround for debugging using the Simulator?

  2. Anton Dobrev
    Anton Dobrev avatar
    529 posts

    Posted 22 Dec 2014 Link to this post

    Hi Dave,

    Thank you for posting to the Telerik Developer Forums.

    1. Regarding the "XMLHttpRequest cannot load..." error. If you are using the AppBuilder Web client, this is a CORS-related problem. You can workaround the issue by running the app on a device or by using the AppBuilder Desktop client or the VS Extension.

    2. Could you please be more specific which functionality is not working as expected? Is the expected functionality available only in SignalR v. 2.1.1? Could you elaborate on your implementation and the expected behavior?

    Please, explore this blog post along with the sample code in the GitHub repository, it uses a higher version of SignalR.

    In addition, the documentation about the data source configuration for working with a SignalR hub could be helpful. Also note the push event of the data source which is called when a notification from the hub is received and the transport.push configuration used to supply the callbacks for the notification events.

    I look forward to your reply.

    Anton Dobrev

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

Back to Top