पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv2.2.13

xmpp_plugin

Xmpp प्लगइन जो xmpp के साथ मूल चैनल और मूल लाइब्रेरीज़ (जैसे Android के smack और iOS के xmppframework) के माध्यम से जुड़ने में मदद करता है

AndroidiOS
30-दिन डाउनलोड
64
लाइक
96
Pub अंक
130

पैकेज इंस्टॉल करें

flutter pub add xmpp_plugin

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

xmpp_plugin एक Flutter पैकेज है जो Android और iOS पर मूल संचार चैनल के माध्यम से XMPP (विस्तारयोग्य संदेश और उपस्थिति प्रोटोकॉल) सर्वर से जुड़कर वास्तविक समय संचार की अनुमति देता है। यह Android के लिए Smack और iOS के लिए XMPPFramework जैसे मूल लाइब्रेरी का उपयोग करता है, जिससे सुदृढ़ और कुशल संदेश प्रेषण क्षमता सुनिश्चित होती है। यह प्लगइन तत्काल संदेश प्रेषण, उपस्थिति निर्धारण और सुरक्षित चैट विशेषताओं की आवश्यकता वाले अनुप्रयोगों के लिए उपयुक्त है। यह Flutter और प्लेटफॉर्म-विशिष्ट XMPP कार्यान्वयन के बीच एक सेतु प्रदान करता है, जिससे अधिक कार्यक्षमता और विद्यमान XMPP बुनियादी ढांचे के साथ अनुकूलता मिलती है।

उपयोग

  • रियल-टाइम चैट एप्लिकेशन्स
  • उपस्थिति और स्थिति ट्रैकिंग
  • सुरक्षित संदेश प्रणाली
  • मौजूदा XMPP सर्वर के साथ एकीकरण
  • बहु-प्लेटफॉर्म संदेश ऐप

मुख्य विशेषताएँ

  • Smack और XMPPFramework के माध्यम से मूल एकीकरण
  • Android और iOS के लिए क्रॉस-प्लेटफॉर्म समर्थन
  • सुरक्षित कनेक्शन प्रबंधन
  • XMPP सर्वर प्रोटोकॉल का समर्थन
  • हल्का और कुशल संचार

इनके लिए उपयुक्त

  • XMPP के साथ चैट ऐप्स बनाने वाले डेवलपर्स
  • XMPP-आधारित बैकएंड सेवाओं का उपयोग करने वाली टीमें
  • कम लेटेंसी संदेश प्रणाली की आवश्यकता वाले एप्लिकेशन
  • मूल स्तर के XMPP प्रदर्शन की आवश्यकता वाले प्रोजेक्ट
  • Android और iOS दोनों के लिए लक्षित मोबाइल ऐप्स

विचार योग्य बातें

  • पूर्ण कार्यक्षमता के लिए मूल सेटअप की आवश्यकता होती है
  • बाहरी XMPP सर्वर पर निर्भर
  • उपलब्ध दस्तावेज़ सीमित हैं
  • प्रत्येक प्लेटफॉर्म पर अतिरिक्त कॉन्फ़िगरेशन की आवश्यकता हो सकती है
  • गैर-XMPP संचार की आवश्यकताओं के लिए उपयुक्त नहीं

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

xmpp_plugin

status workflow

  1. Connect to the xmpp server
final param = {
      "user_jid":"jid/resource",
      "password": "password",
      "host": "xmpphost",
      "port": "5222",
      "nativeLogFilePath": "filepath",
      "requireSSLConnection": true,
      "autoDeliveryReceipt": true,
      "useStreamManagement": false,
      "automaticReconnection": true,
};

XmppConnection xmppConnection = XmppConnection(param);

await xmppConnection.start(_onError);
await xmppConnection.login();

  1. Send message to one-one chat
await xmppConnection.sendMessageWithType("xyz@domain", "Hi", "MSGID");
await xmppConnection.sendGroupMessageWithType("xyz@conference.domain", "Hi", "MSGID");
  1. Disconnect the xmppConnection
xmppConnection.logout();
  1. Creating a MUC
xmppConnection.createMUC("groupName", true);
  1. Joining MUC
xmppConnection.joinMucGroups(List<String> allGroupsId)

  1. Sending Custom Message
await xmppConnection.sendCustomMessage("xyz@domain", "Hi", "MSGID","customTest");
await xmppConnection.sendCustomGroupMessage("xyz@conference.domain", "Hi", "MSGID","customText");

  1. Sending Delivery Receipt
await flutterXmpp.sendDelieveryReceipt("xyz@domain", "Received-Message-Id", "Receipt-Id");
  1. Adding members to MUC
await flutterXmpp.addMembersInGroup("groupName", List<String> allMembersId);
  1. Adding admins to MUC
await flutterXmpp.addAdminsInGroup("groupName", List<String> allMembersId);
  1. Get member list from the MUC
await flutterXmpp.getMembers("groupName");
  1. Get Admin list from the MUC
await flutterXmpp.getAdmins("groupName");
  1. Get Owner list from the MUC
await flutterXmpp.getOwners("groupName");
  1. Remove members from the MUC
await flutterXmpp.removeMember("groupName", List<String> allMembersId);
  1. Remove admins from group
await flutterXmpp.removeAdmin("groupName", List<String> allMembersId);
  1. Get online member count from group
var onlineCount = await flutterXmpp.getOnlineMemberCount("groupName");
  1. Get last activity of the jid
var lastseen = await flutterXmpp.getLastSeen(jid);
  1. Get the list of my rosters
await flutterXmpp.getMyRosters();
  1. Creating a roster entry
await flutterXmpp.createRoster(jid);
  1. Join single MUC
await flutterXmpp.joinMucGroup(groupId);
  1. Request MAM Messages
await flutterXmpp.requestMamMessages(userJid, requestSince, requestBefore, limit);
  1. Update Typing Status
await flutterXmpp.changeTypingStatus(userJid, typingStatus);
  1. Update Presence Type
await flutterXmpp.changePresenceType(presenceType, presenceMode);
  1. Get Connection status
XmppConnectionState connectionStatus = await flutterXmpp.getConnectionStatus();
  1. Get ErrorResponse Event
void onXmppError(ErrorResponseEvent errorResponseEvent) {
    // TODO : Handle the Error Event
}
  1. Get SuccessResponse Event
void onSuccessEvent(SuccessResponseEvent successResponseEvent) {
    // TODO : Handle the Success Event
}
  1. Get ChatMessage Event
void onChatMessage(MessageChat messageChat) {
    // TODO : Handle the ChatMessage Event
}
  1. Get GroupMessage status
void onGroupMessage(MessageChat messageChat) {
    // TODO : Handle the GroupMessage Event
}
  1. Get NormalMessage status
void onNormalMessage(MessageChat messageChat) {
    // TODO : Handle the NormalMessage Event
}
  1. Get PresenceChange status
void onPresenceChange(PresentModel presentModel) {
    // TODO : Handle the PresenceChange Event
}
  1. Get ChatStateChange status
void onChatStateChange(ChatState chatState) {
    // TODO : Handle the ChatState Event
}
  1. Get ConnectionEvent status
void onConnectionEvents(ConnectionEvent connectionEvent) {
    // TODO : Handle the ConnectionEvent Event
}

Contact

You can reach us via mail(hiren@xrstudio.in) the if you have questions or need support.

श्रेणियाँ

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।