Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

iOS MCU connection fails.

tangk
Beginner
679 Views

The connection was successful in windows or mac with javascript.

Environment:
 - Ver: 3.5.1
 - The certificate is self sign

First try:

AFHTTPRequestOperationManager * manager = [AFHTTPRequestOperationManager manager];
  manager.requestSerializer = [AFJSONRequestSerializer serializer];
  [manager.requestSerializer setValue: @ "* / *" forHTTPHeaderField: @ "Accept"];
  [manager.requestSerializer setValue: @ "application / json" forHTTPHeaderField: @ "Content-Type"];
  manager.responseSerializer = [AFHTTPResponseSerializer serializer];

  manager.securityPolicy.allowInvalidCertificates = NO;
  manager.securityPolicy.validatesDomainName = YES;

console log:
Error: Domain = NSURLErrorDomain Code = -1012 "(null)" UserInfo = {NSErrorFailingURLStringKey = https: //172.16.34.108:3004/createToken/, NSErrorFailingURLKey = https: //172.16.34.108: 3004 / createToken /
<0> HTTP load failed (error code: -999 [1:89]) Task <D27C7195-B242-4BBE-A65D-B93074EAD6D5> <0> WoogeenConference [444: 43799]

 

Second try:
 manager.securityPolicy.allowInvalidCertificates = YES;
 manager.securityPolicy.validatesDomainName = NO;

console log:
[2017-12-15 17:49:45] [connect] Successful connection
[2017-12-15 17:49:45] [connect] WebSocket Connection 172.16.34.108:8080 v-2 "WebSocket ++ / 0.5.1" /socket.io/?EIO=4&transport=websocket&t=1513327785 101

It will not run anymore here.

0 Kudos
1 Reply
tangk
Beginner
679 Views

I solved it.
The iOS SDK version was 3.5.1 and the MCU server version was 3.4.1.
So I changed the version of MCU server from 3.4.1 to 3.5.1.

0 Kudos
Reply