[英]How to connect to a media server using Real Time Streaming Protocol (RTSP) from an iOS application?
[英]How to send and retrieve real time messages & media files using SupportKit on iOS
我使用Slack和SupportKit v2.9.0。 我希望能夠從其他渠道的其他用戶檢索消息和媒體文件。
(BOOL) application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
[SupportKit initWithSettings:
[SKTSettings settingsWithAppToken:@"eknlh3uw8lrdveknlh3uw8lrdvs49xj29fqahcs49xj29fqahc"]];
[SupportKit setUserFirstName:@"Han" lastName:@"Solo"];
return YES;
}
我在我的應用程序中調用SupportKit:
[SupportKit show];
當視圖加載時,我能夠發送和檢索消息,但不顯示用戶的名稱。 我還想將我應用的其他用戶的消息提取到同一個對話中。
更新:
我做了以下改變
(void) viewDidLoad {
[super viewDidLoad];
[SKTUser currentUser].firstName = @"Doctor";
[SKTUser currentUser].lastName = @"Who";
[[SKTUser currentUser] addProperties:@{ @"nickname" : @"Lil Big Daddy Slim", @"weight" : @650, @"premiumUser" : @YES }];
[SupportKit show];
}
但我仍然無法看到用戶的名字出現在對話中。
要設置您可以使用的用戶名和配置文件
[SKTUser currentUser].firstName = @"Doctor";
[SKTUser currentUser].lastName = @"Who";
[[SKTUser currentUser] addProperties:@{ @"nickname" : @"Lil Big Daddy Slim", @"weight" : @650, @"premiumUser" : @YES }];
有關詳細信息,請參閱此文檔http://docs.supportkit.io/#identifying-your-users
請注意,SupportKit對話意味着在應用用戶和應用制造商之間。 在兩個應用用戶之間進行對話並不是目前支持的。
如果這就是你的意思,SupportKit不能用作App用戶之間的聊天客戶端。 我認為你可能正在尋找的東西是ChatSecure的東西 。 但是,這不會讓您作為App Maker為用戶之間的對話做出貢獻。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.