सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
VoIP पुश नोटिफिकेशन के लिए एक Flutter प्लगइन, जो वर्तमान में iOS 8.0 और उसके ऊपर के लिए समर्थित है। यह वास्तविक समय संचार ऐप्स को अपने ऐप बंद होने के बाद भी पुश नोटिफिकेशन प्राप्त करने की अनुमति देता है, जिससे विश्वसनीय कॉल कनेक्टिविटी सुनिश्चित होती है। यह पैकेज Apple के पुश नोटिफिकेशन सेवा (APNs) के साथ एकीकृत है ताकि साइलेंट VoIP नोटिफिकेशन को डिलीवर किया जा सके, जिससे आने वाले कॉल के लिए बैकग्राउंड ऐप एक्टिवेशन संभव होता है। ध्वनि-ओवर-आईपी ऐप्स के लिए विशेष रूप से डिज़ाइन किया गया है, जैसे VoIP कॉलिंग या तुरंत नोटिफिकेशन डिलीवरी की आवश्यकता वाले संदेश प्लेटफॉर्म। Flutter के पारिस्थितिकी तंत्र में बिना किसी जटिल सेटअप के बिना बिना किसी दिक्कत के काम करता है। इस समय एंड्रॉइड के लिए कोई समर्थन नहीं है।
उपयोग
रियल-टाइम वॉइप कॉलिंग ऐप्स
बैकग्राउंड कॉल नोटिफिकेशन्स
साइलेंट पुश नोटिफिकेशन हैंडलिंग
आने वाले कॉल पर ऐप जगाएं
वॉइस कम्युनिकेशन प्लेटफॉर्म
मुख्य विशेषताएँ
iOS-केवल VoIP पुश समर्थन
साइलेंट नोटिफिकेशन डिलीवरी
बैकग्राउंड ऐप एक्टिवेशन
Apple APNs एकीकरण
आवश्यक न्यूनतम कॉन्फ़िगरेशन
इनके लिए उपयुक्त
VoIP एप्लिकेशन डेवलपर्स
रियल-टाइम कम्युनिकेशन ऐप्स
iOS-केंद्रित Flutter परियोजनाएँ
कॉल रूटिंग प्रणाली
विश्वसनीय पृष्ठभूमि नोटिफिकेशन की आवश्यकता वाले ऐप्स
विचार योग्य बातें
कोई एंड्रॉइड समर्थन नहीं
iOS 8.0 या उच्चतर की आवश्यकता है
APNs प्रमाणपत्र सेटअप की आवश्यकता है
VoIP उपयोग केस के लिए सीमित
Apple के पुश इंफ्रास्ट्रक्चर पर निर्भर
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
Flutter VoIP Push Notification
Flutter VoIP Push Notification - Currently iOS >= 8.0 only
Motivation
Since iOS 8.0 there is an execellent feature called VoIP Push Notification (PushKit), while firebase_messaging does not support voip push notification which is only available on iOS >= 8.0 which is the reason for this plugin.
To understand the benefits of Voip Push Notification, please see VoIP Best Practices.
import'package:flutter/material.dart';
import'package:flutter/material.dart';
import'dart:async';
import'package:flutter_voip_push_notification/flutter_voip_push_notification.dart';
voidmain() => runApp(MyApp());
classMyAppextendsStatefulWidget{
@override_MyAppStatecreateState() => _MyAppState();
}
class_MyAppStateextendsState<MyApp> {
String _pushToken = '';
FlutterVoipPushNotification _voipPush = FlutterVoipPushNotification();
@overridevoidinitState() {
super.initState();
configure();
}
// Configures a voip push notificationFuture<void> configure() async {
// request permission (required)await _voipPush.requestNotificationPermissions();
// listen to voip device token changes
_voipPush.onTokenRefresh.listen(onToken);
// do configure voip push
_voipPush.configure(onMessage: onMessage, onResume: onResume);
}
/// Called when the device token changesvoidonToken(String token) {
// send token to your apn provider serversetState(() {
_pushToken = token;
});
}
/// Called to receive notification when app is in foreground////// [isLocal] is true if its a local notification or false otherwise (remote notification)/// [payload] the notification payload to be processed. use this to present a local notificationFuture<dynamic> onMessage(bool isLocal, Map<String, dynamic> payload) {
// handle foreground notificationprint("received on foreground payload: $payload, isLocal=$isLocal");
returnnull;
}
/// Called to receive notification when app is resuming from background////// [isLocal] is true if its a local notification or false otherwise (remote notification)/// [payload] the notification payload to be processed. use this to present a local notificationFuture<dynamic> onResume(bool isLocal, Map<String, dynamic> payload) {
// handle background notificationprint("received on background payload: $payload, isLocal=$isLocal");
showLocalNotification(payload);
returnnull;
}
showLocalNotification(Map<String, dynamic> notification) {
String alert = notification["aps"]["alert"];
_voipPush.presentLocalNotification(LocalNotification(
alertBody: "Hello $alert",
));
}
@overrideWidgetbuild(BuildContext context) {
returnMaterialApp(
home: Scaffold(
appBar: AppBar(
title: constText('Plugin example app'),
),
body: Center(
child: Text('Received Voip Push token: $_pushToken\n'),
),
),
);
}
}