我正在使用SinMessageClient发送消息。我需要在我的代码中支持推送通知,并且我已经使用以下代码设置了推送:
NSString* userId = [options valueForKey:APP_USER_USERID_CONSTANT];
id<SINClient> sinchClient = [Sinch
clientWithApplicationKey:SINCH_APPLICATION_KEY
applicationSecret:SINCH_APPLICATION_SECRET
environmentHost:@"sandbox.sinch.com"
userId:userId];
[sinchClient setSupportMessaging:YES];
[sinchClient enableManagedPushNotifications];
sinchClient.delegate = delegate;
self.push = [Sinch managedPushWithAPSEnvironment:SINAPSEnvironmentAutomatic];
self.push.delegate = delegate;
[self.push setDesiredPushTypeAutomatically];
[self.push registerUserNotificationSettings];
// Start the Sinch Client
[sinchClient start];
// Start listening for incoming events (calls and messages).
[sinchClient startListeningOnActiveConnection];我还实现了这里提到的所有需求https://www.sinch.com/tutorials/ios-managed-push/
它不工作,我有以下问题。如果我的应用程序在后台,如何发送推送消息?不支持sinch call client,我可以支持推送通知吗?我只上传APN推送证书在sinch仪表板,没有网络电话推送证书。它是否适用于即时通讯应用程序?
发布于 2015-10-30 05:06:38
正常推送,不需要callClient。你还是有这个问题吗?
https://stackoverflow.com/questions/33194797
复制相似问题