ringcentral / engage-digital-messaging-ios

Engage Digital Messaging IOS SDK
Other
10 stars 6 forks source link

Dimelo-iOS-SampleApp - message unsent #6

Closed nicolaslabbe closed 7 years ago

nicolaslabbe commented 7 years ago

Hi,

I tried to run the Dimelo-IOS-SampleApp, following the documentation instructions I have updated the apiSecret value from DimeloConfig.plist.

But when I run the project (both with the simulator or the device) I'm getting an unsent status upon the bubble message.

I also see logs into xcode, I think I'm missing something about the domain maybe ? because it call https://localhost/api/1.0/status and https://localhost/api/1.0/register and fails. I tried to change it with XXX.dimelo.com admin console without success.

2017-01-17 17:32:30.692 Dimelo CocoaPods Sample[36003:1118584] error while updating unreadCount : Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={NSUnderlyingError=0x60800005dfd0 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, NSErrorFailingURLStringKey=https://localhost/api/1.0/status, NSErrorFailingURLKey=https://localhost/api/1.0/status, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=61, NSLocalizedDescription=Could not connect to the server.}
2017-01-17 17:32:35.700 Dimelo CocoaPods Sample[36003:1118584] error while updating unreadCount : Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={NSUnderlyingError=0x60800005b630 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, NSErrorFailingURLStringKey=https://localhost/api/1.0/register, NSErrorFailingURLKey=https://localhost/api/1.0/register, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=61, NSLocalizedDescription=Could not connect to the server.}
2017-01-17 17:32:40.776 Dimelo CocoaPods Sample[36003:1118584] error while updating unreadCount : Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={NSUnderlyingError=0x60000005a9d0 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, NSErrorFailingURLStringKey=https://localhost/api/1.0/register, NSErrorFailingURLKey=https://localhost/api/1.0/register, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=61, NSLocalizedDescription=Could not connect to the server.}

Do you have any suggestions ?

Thanks.

Cylix commented 7 years ago

Hi,

Have you tried to remove the hostname property from the .plist? By default, if no hostname is provided, we set it to mobilemessaging.engagement.dimelo.com. The SDK needs to contact our Dimelo Mobile Server (which is different from the Dimelo Digital application).

Do not hesitate to come back to me if it does not solve your issue.