This is an upgrade of my last FCM XMPP Connection Server application. Now, this project uses the latest version at this time of the Smack library (4.1.8).
The new version has introduced new terminology, deprecated some older methods and enriched the library in general. The problem started when there is a no working example out there using the new version to build a XMPP CCS for FCM. In summary, the API changes from the 3.x to the 4.x version are:
- XMPPConnection is now an interface. Use either AbstractXMPPConnection or one of its subclasses (XMPPTCPConnection).
- XMPPConnection.addPacketListener is deprecated: use either addAsyncPacketListener or addSyncPacketListener.
- Packet became a deprecated interface. Use the new Stanza class.
- The Packet Extension term is now Extension Element.
For more information you must read the following documentation:
##New Smack libraries
##How to start the server Just because it is the same project as my prior solution, the way to start the server is exactly the same. You can read my how to start the server.
##About me I am Carlos Becerra - MSc. Softwware & Systems. You can contact me via:
##Thanks To tell the truth. I was really worried looking for the right solution. Finally, I made a list of useful links (apart from the above documentation links).
Any improvement or comment about the project is always welcome! As well as others shared their code publicly I want to share mine! Thanks!
##License
Copyright 2016 Carlos Becerra
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.