strophe / libstrophe

A simple, lightweight C library for writing XMPP clients
http://strophe.im/libstrophe
Other
401 stars 163 forks source link

Send PUSH notification to Google Firebase server #112

Closed pengweichu closed 6 years ago

pengweichu commented 7 years ago

Hi, I'm new to XMPP, I would like to use libstrophe to send the PUSH notification to google firebase server, I'm using C++, in the C++ wrapper strophepp.h I didn't find any TLS options, it's possible use connect to server over TLS by C++ wrapper ?

Thanks

pasis commented 7 years ago

Hello,

Unfortunately, C++ wrapper is unfinished and lacking new features added in libstrophe-0.9.x. One class is completely missed.

However, you can use C version of libstrophe without limitations. There are opensource C++ projects that create own wrappers for their needs. I can search for them if you're interested.

libstrophe establishes TLS implicitly. By default, it's established every time when server supports it. Starting with libstrophe version 0.9 you can control TLS establishing via connection flags. See https://github.com/strophe/libstrophe/blob/master/examples/basic.c for example. With XMPP_CONN_FLAG_MANDATORY_TLS flag libstrophe always establishes TLS or fails if it's impossible.

I'm not familiar with PUSH notification to Google Firebase server, so can't help with it right now.

pasis commented 6 years ago

Close due to inactivity.