CN106330669A - iOS platform instant messaging system based on XMPP - Google Patents
iOS platform instant messaging system based on XMPP Download PDFInfo
- Publication number
- CN106330669A CN106330669A CN201510387584.7A CN201510387584A CN106330669A CN 106330669 A CN106330669 A CN 106330669A CN 201510387584 A CN201510387584 A CN 201510387584A CN 106330669 A CN106330669 A CN 106330669A
- Authority
- CN
- China
- Prior art keywords
- module
- user
- information
- address
- communication
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
The invention provides an iOS platform instant messaging system based on XMPP. The system comprises an ID information management module used for automatically generating ID information according to the application of a user, calling the ID information, storing the ID information or pushing the ID information; a relationship management module used for realizing relationship establishment, parallel relationship and relationship removal between the user and the user according to the aspiration of the user; a one-to-one communication module used for sending a channel between the user and the user according to a signal sent by the user; a multiple-to-multiple communication module used for establishing a communication channel between multiple users; a communication information storage module used for storing communication contents when the one-to-one communication module and the multiple-to-multiple communication module are running; and a communication information push module used for pushing the communication contents in the one-to-one communication module and the multiple-to-multiple communication module to a third party ID address. The iOS platform instant messaging system provided by the invention improves the richness and security of instant messaging while guaranteeing the timeliness and accuracy of the instant messaging.
Description
Technical field
The present invention relates to a kind of instant communicating system, be specifically related to a kind of based on XMPP
IOS platform instant communicating system.
Background technology
Mobile Internet is just changing the every aspect of life with swift and violent development, based on iOS
Apply more than million with the APP of Android.Instant messaging is one the most important as the Internet
, also there is inherent advantage in branch in the mobile Internet epoch, it is possible to use smart mobile phone sends
Word, picture, voice, geographical position, receive message whenever and wherever possible.Instant messaging is moving
The Internet era of dynamic either still the hugest to individual Man's Demands to enterprise.And it is instant
Ageing, the accuracy of communication, rich, safety are just particularly important.
Summary of the invention
It is an object of the invention to provide a kind of iOS of based on XMPP platform instant messaging system
System, while ensureing ageing, the accuracy of instant messaging, perfect instant messaging is rich
Richness and safety.
The invention provides following technical scheme:
Id information management module, automatically generates id information according to the application of user, recalls ID
Information, storage id information or propelling movement id information;
Relation management module, according to the wish of user, reaches relation between user and user
Set up, relation is parallel, relation broken;
Interactive module, sets up interactive channel according to user intention;
Communication information memory module, the memory communicating content when described interactive module is run;
Communication information pushing module, for being pushed to the Content of communciation in described interactive module
ID address.
Relation management module includes that ID address sort module, ID address add module, ID ground
Location removing module and ID address memory module;
Existing ID address is carried out Classification Management by described ID address sort module;
Module is added for adding new ID address in described ID address;
Described ID address removing module is used for deleting existing ID address;
The ID address information that described ID address memory module has been added for storage.
Described interactive module includes communication module and multi-to-multi communication module one to one;
A pair of communication module, the signal sent according to user is between user and user
Set up a channel;
Described multi-to-multi communication module, sets up communication channel between multi-user.
Described interactive module includes that interactive channel sets up module, information sending module, new ID ground
Location introduces module.
The interactive information of described interactive module includes Word message, pictorial information, voice messaging
And positional information.
The invention has the beneficial effects as follows: the present invention is capable of the compatibility of multiple input signal;
And take the signal pattern of the output that the present invention obtains clear, it is susceptible to interference.
Accompanying drawing explanation
Accompanying drawing is used for providing a further understanding of the present invention, and constitutes one of description
Point, it is used for together with embodiments of the present invention explaining the present invention, is not intended that the present invention's
Limit.In the accompanying drawings:
Fig. 1 is principle of the invention structural representation;
Fig. 2 is the structural representation of a preferred embodiment of the present invention;
Fig. 3 is that the user management module of a preferred embodiment of the present invention runs schematic diagram.
Detailed description of the invention
It is MVC design model that iOS develops the most frequently used architecture design model, namely model-regard
Figure-controller designs a model, and MVC architecture design can make program structure clearly demarcated, and decoupling height is multiple
Strong by property.The present invention also uses MVC design model.
As it is shown in figure 1, program is broadly divided into 3 levels, data Layer, table by MVC model
Existing layer and logical layer.Data Layer is for encapsulation of data and processes simple mathematical logic, table
Existing layer User represents and user mutual, logical layer between data Layer and presentation layer,
Both data Layer data can be changed by the interactive operation of presentation layer, it is also possible to pass through data Layer
Data change presentation layer and show.For the present invention, data Layer mainly include data model with
And data store two parts, data model includes user profile data model, chat messages number
According to model, electronic business card model etc., data storage section includes that buddy list stores, history
Chat messages stores.Presentation layer mainly includes that the display of each view and user are mutual, than
Such as conversation view, friend's view, individual's view.
The open iOS platform instant communicating system based on XMPP of the present invention, including: ID
Information management module, according to the application of user automatically generate id information, recall id information,
Storage id information or propelling movement id information;
Relation management module, according to the wish of user, reaches relation between user and user
Set up, relation is parallel, relation broken;
Communication module one to one, sets up between user and user according to the signal that user sends
Article one, channel;
Multi-to-multi communication module, sets up communication channel between multi-user;
Communication information memory module, transports at the pair of communication module and multi-to-multi communication module
Memory communicating content during row;
Communication information pushing module, for by the pair of communication module and multi-to-multi communication mould
Content of communciation in block is pushed to third party ID address.
It is described further with a preferred embodiment below:
As in figure 2 it is shown, as a example by communication APP, the functional module of core includes following 7
Point: user management module, good friend manage module, one to one chat module, multi-user's chat
Module, dialog history module, electronic business card module, message notification module.Allomeric function mould
Block structural diagram is:
User log-in block mainly includes the registering functional of user, login feature, nullifies function.
Login feature Auto Login feature to be realized, namely logged before user is again turned on
After APP, the account information (username and password) of user is automatically gone to log in by APP on backstage.
If after user log off the accounts information of preservation can be deleted, next time cannot automated log on,
Judge whether to need certainly so automated log on needs whether save user profile according to this locality
Dynamic login.
As it is shown on figure 3, function details:
1. registering functional: registration is (to note after being not logged in or logging under user is not logged in premise
Pin) allow user go registration, the place occurred at interface is user's login interface, presses in login
Registration entrance is set below button.User is needed to input username and password for registering during registration,
Carrying out registration request to openfire server, registration return result is mainly with two kinds, a kind of
Being to succeed in registration, one is to have caused registration failure owing to user name has been registered, basis
The result that server returns processes accordingly.If succeeded in registration, jump to main interface,
And preserve user account and password.User's registration failure is otherwise reminded to allow user re-register.
2. login feature: due to by automated log on, so login interface is initially opened user
APP or user nullify after logging in or these several situations of backstage automated log on failure can go out
Existing login interface.User's username and password to be inputted during register, then to
Openfire server carries out logging request, then jumps to main interface if logged on success and protects
Deposit user account and password, if user name or password bad cause login failure, carry
Awake login failed for user also allows user again log in.
3. nullify function: after user selects logging off users, first please to openfire server
Ask cancellation, after asking successfully, to delete the user profile of local preservation, then the user redirected steps on
Record interface.
Good friend manages module and includes that buddy list shows, searches and adds good friend, checks friend information
Etc. function.
Function details:
1. show that buddy list to show after Openfire server request, search and add
Friend needs user to input the user name of the other side, searches whether to there is this user to server request,
If there is this user, then list, if user select add good friend, then to
Openfire server request adds good friend, can receive invitation notification when the other side reaches the standard grade.If
Server can not find this user name then allows user re-enter lookup;
2. check that friend information is the user name being checked good friend by buddy list, head portrait, sex,
The information such as mood signature.
Chat module is user's chat conversations man-to-man with good friend contact person after login one to one,
The form of conversation message includes: word, voice, message, geographic location information, Ke Yifa
Sending message and receive message, the chat messages of transmission can share social platform.APP exists
Also can receive message during running background, show new information by locally pushed form.
Function details:
Chat is to select good friend contact person enter or chat from history after the user logs the most one to one
It dialogue enters chat interface, and after entrance, chat interface to have the history chat note of local preservation
Record, at the lower section of chat interface chat messages to be had input control, be capable of sending literary composition
Word, picture, voice, the chat messages type such as geographical position, wherein sending picture is from hands
Machine photograph album selects send, send picture plurality of pictures to be supported batch and select to send, at most
Optional six.Send the microphone location of voice mobile phone to be used, the sound that will record after recording
Taking place frequently and see off, interactive form here is to pin record button to record, and stops after unclamping
Only recording and send, the system that sending geographical position function needs carries map, enters ground
Scheme and position user current location, the address that user to be obtained is current, address of theenduser will be comprised
Map picture send.
2., at chat interface one to one, want to show in real time if the other side has message to send over
Out, the message oneself sent also can show that, also should on message
The date that display message sends, at the head portrait of the side of message user to be shown.Message shows
It is similar to bubble dialogic operation, according to different type of messages, corresponding display will be done,
Such as word message multirow to be supported shows, image information to support to check artwork, and picture contracts
The operation such as put.
3. chat messages sharing function, for history chat messages such as word and image information, can
To support to share social platform such as Sina's microblogging and Tengxun's microblog, mutual side here
Formula is that long message of pressing ejects and shares button.
4. running background receives new information function, and APP is at running background, if there being new information to arrive
Reaching, user has new information, user to click on new information and open to use locally pushed form to notify
New information can be seen after APP.
Multi-user's chat module is the chat form between multiple user, the message of multi-user's chat
Type is the same with chat one to one, the message such as including word, picture, voice, geographical position
Type.Realize newly-built multi-user's Chatroom, name to multi-user's Chatroom, invite
Good friend adds multi-user's Chatroom, the function such as speech in multi-user's Chatroom.Multiplex
Family chat messages also to be supported to share the social platform such as microblogging.
Function details:
1. multi-user chat be after the user logs from existing group or initiate multi-user chat
Enter multi-user's chat interface, the group that group user to be preserved added, initiates multiplex
Family chat selects good friend then to create multi-user's Chatroom exactly from buddy list,
Multi-user's Chatroom to be given is named, and sends to openfire server and creates multi-user
Chat server is asked, if creating successfully, server will send to the good friend specified and add
Enter multi-user's chat invitation, if agreeing to that just adding multi-user chats successfully.Chat multi-user
It interface, can check the group member of current multi-user Chatroom;
2. after creating the success of multi-user's Chatroom, group member can be made a speech in group, sends
Type of message include the type of messages such as word graph sheet voice geographical position, the message institute of transmission
There is group member to receive and show in real time at multi-user's chat interface, the display of message
The display of chat messages is slightly different one to one, and the message chatted one to one shows it is a left side
One right typesetting, and the message of multi-user's chat shows all in left side, message also will be with bubble pair
The form of words represents, the date of transmission to be had above message.Chat messages is similar to one to one,
According to different type of messages, corresponding display, such as word message multirow to be supported to be done
Show, the operations such as image information to support to check artwork, picture scaling;
3. similar with chat messages one to one, chat messages sharing function to be supported, for history
Chat messages such as word and image information, can support to share social platform such as Sina's microblogging
With Tengxun's microblog.
Dialog history module refers to that the conversation message that user and good friend chat recently, two places are wanted
Using dialog history message module, one is that conversations list wants all nearest chat buddies of reality
Messaging list, another is the history chat messages of some good friend or some is many
The history chat messages of user's chat.
Function details:
1. conversations list message show be mainly used in before this locality have preservation dialog history record, logical
Crossing the conversation message before conversations list just can conveniently be checked, conversations list to be chatted as up-to-date
It time-sequencing, the head portrait of chat buddies to be shown, user name, chat the date, up-to-date
The contents such as chat messages;
2. enter a certain good friend or multi-user's Chatroom from conversations list, also to show a pair
One chat or the history chat messages of multi-user's chat, history chat messages is according to chat day
Phase shows from front to back, content to be shown useful account picture, chats the date, and chat disappears
Breath.
Electronic business card module class is similar to the personal information of user, and user can edit the electronics of oneself
Card information, it is also possible to browse the electronic business card information of good friend.Electronic business card information to comprise
The information such as head portrait, sex, mood signature.
Function details:
1. the card information of user oneself can be edited, and wherein head portrait photo will be from mobile phone phase
Obtaining in Ce, gender information can only allow user select man or female, and mood signature allows user oneself
Input.When user changes individual's card information every time, to openfire server request more
Change individual's card information;
2. can check the individual card information of good friend in buddy list.
Message notification module is mainly used in both for reminding of new message, asks notice including good friend, and group invites
Please notify, new chat messages notice.
Function details: message informing is to have important prompting message such as good friend to add after the user logs
Add request, group's message request, new chat message notice etc., in iOS system, carry
The visual display waken up is reminded generally by small red dot or upper right corner numeral.
1. good friend asks notice, if there being people to add good friend when asking, server will send to you
Good friend asks notice, in request event, it is understood that the user name of the other side.User can select
Whether selecting and agree to, if agreed to, granting an application to server request, both sides good friend each other is closed
System, can see the good friend just now added in buddy list.If refusal, sending refusal please
Asking, refusal is asked notice to the other side.User selects to agree to or after refusal request on interface
Show corresponding content.
2. group's invitation notification, if there being good friend to invite some group room of addition, then services
Device will send group's invitation notification to you, in invitation event, it is understood that the reason of invitation and
Invite people.User can choose whether to accept the invitation, if accepting, sending to server and connecing
Asked by invitation, add group's success, it can be seen that the group just now added in group list
Group, otherwise sends the refusal request of accepting the invitation.User selects to accept or after refusal on interface
Show corresponding content.
The newest chat messages notice, if having new chat messages or having the chat do not read to disappear
Breath, to remind user to have how many new informations with numeral in dialog interface, and user has read newly
After message, numeral is reminded to disappear.
To sum up, present system is complete while ensureing ageing, the accuracy of instant messaging
The rich of instant messaging and safety are apt to it.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, to the greatest extent
The present invention has been described in detail by pipe with reference to previous embodiment, for the technology of this area
For personnel, the technical scheme described in foregoing embodiments still can be modified by it,
Or wherein portion of techniques feature is carried out equivalent.All in the spirit and principles in the present invention
Within, any modification, equivalent substitution and improvement etc. made, should be included in the present invention's
Within protection domain.
Claims (5)
1. iOS platform instant communicating system based on XMPP, it is characterised in that bag
Include:
Id information management module, automatically generates id information according to the application of user, recalls ID
Information, storage id information or propelling movement id information;
Relation management module, according to the wish of user, reaches relation between user and user
Set up, relation is parallel, relation broken;
Interactive module, sets up interactive channel according to user intention;
Communication information memory module, the memory communicating content when described interactive module is run;
Communication information pushing module, for being pushed to the Content of communciation in described interactive module
ID address.
IOS platform instant messaging based on XMPP the most according to claim 1
System, it is characterised in that relation management module includes ID address sort module, ID address
Add module, ID address removing module and ID address memory module;
Existing ID address is carried out Classification Management by described ID address sort module;
Module is added for adding new ID address in described ID address;
Described ID address removing module is used for deleting existing ID address;
The ID address information that described ID address memory module has been added for storage.
IOS platform instant messaging based on XMPP the most according to claim 1
System, it is characterised in that described interactive module includes communication module and multipair manifold one to one
News module;
A pair of communication module, the signal sent according to user is between user and user
Set up a channel;
Described multi-to-multi communication module, sets up communication channel between multi-user.
4. instant according to the iOS platform based on XMPP described in claim 1 or 3
Communication system, it is characterised in that described interactive module includes that interactive channel sets up module, letter
Breath sending module, new ID address introduce module.
IOS platform instant messaging based on XMPP the most according to claim 1
System, it is characterised in that the interactive information of described interactive module includes Word message, picture
Information, voice messaging and positional information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510387584.7A CN106330669A (en) | 2015-06-30 | 2015-06-30 | iOS platform instant messaging system based on XMPP |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510387584.7A CN106330669A (en) | 2015-06-30 | 2015-06-30 | iOS platform instant messaging system based on XMPP |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106330669A true CN106330669A (en) | 2017-01-11 |
Family
ID=57728299
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510387584.7A Pending CN106330669A (en) | 2015-06-30 | 2015-06-30 | iOS platform instant messaging system based on XMPP |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106330669A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110312101A (en) * | 2019-07-01 | 2019-10-08 | 杭州当虹科技股份有限公司 | A kind of portable real-time mobile portrait is deployed to ensure effective monitoring and control of illegal activities the implementation method of system |
CN111104116A (en) * | 2019-12-13 | 2020-05-05 | 紫光云(南京)数字技术有限公司 | Method for dynamically generating operation interface based on configuration |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103002414A (en) * | 2012-12-13 | 2013-03-27 | 周静 | Instant messaging mobile terminal system |
CN104243271A (en) * | 2013-06-09 | 2014-12-24 | 深圳中兴网信科技有限公司 | Method and system for realizing off-line message pushing through XMPP |
-
2015
- 2015-06-30 CN CN201510387584.7A patent/CN106330669A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103002414A (en) * | 2012-12-13 | 2013-03-27 | 周静 | Instant messaging mobile terminal system |
CN104243271A (en) * | 2013-06-09 | 2014-12-24 | 深圳中兴网信科技有限公司 | Method and system for realizing off-line message pushing through XMPP |
Non-Patent Citations (1)
Title |
---|
周士雄: "《基于XMPP协议的移动平台即时通讯系统的涉及与实现》", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110312101A (en) * | 2019-07-01 | 2019-10-08 | 杭州当虹科技股份有限公司 | A kind of portable real-time mobile portrait is deployed to ensure effective monitoring and control of illegal activities the implementation method of system |
CN111104116A (en) * | 2019-12-13 | 2020-05-05 | 紫光云(南京)数字技术有限公司 | Method for dynamically generating operation interface based on configuration |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9276802B2 (en) | Systems and methods for sharing information between virtual agents | |
US7047030B2 (en) | Group communication method for a wireless communication device | |
US7991424B2 (en) | Dynamic generation of group lists for a communication device using tags | |
KR101471703B1 (en) | Messaging service system for expanding addition of member and method thereof | |
US9386110B2 (en) | Communications responsive to recipient sentiment | |
US20070150608A1 (en) | Method of Enabling a Wireless Information Device to Access Data Services | |
US20040249846A1 (en) | Database for use with a wireless information device | |
JP6312795B2 (en) | Social communication system | |
US20140164312A1 (en) | Systems and methods for informing virtual agent recommendation | |
US20140164953A1 (en) | Systems and methods for invoking virtual agent | |
US20140164533A1 (en) | Systems and methods for user interface presentation of virtual agent | |
Cassidy | Gay men, social media and self-presentation: Managing identities in Gaydar, Facebook and beyond | |
US20140164509A1 (en) | Systems and methods for providing input to virtual agent | |
CN108123869A (en) | For the system and method for communication | |
JP2021506034A (en) | Servers and user terminals that support the management of social networks | |
US20200111059A1 (en) | Method for event reminding, and method and apparatus for generating event reminding message | |
Madianou | Migration, transnational families, and new communication technologies | |
US20130054690A1 (en) | Systems and Methods for Managing Personal Information | |
WO2012016509A1 (en) | Method and system for management by network and for automatic update of contact information | |
CN107526745A (en) | Electronic invitation card management method, system and mobile terminal based on social platform | |
CN112242948B (en) | Group session processing method and device, computer equipment and storage medium | |
CN106330669A (en) | iOS platform instant messaging system based on XMPP | |
Birnholtz et al. | Understanding unavailability in a world of constant connection | |
Benediktsson et al. | Hybrid strategies: allocating involvement in the digital age | |
Fakhruroji | Texting condolences on WhatsApp as a mediatized mourning practice |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170111 |
|
WD01 | Invention patent application deemed withdrawn after publication |