सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
पुशर बीम्स फ्लटर एप्लिकेशन में पुश नोटिफिकेशन को एकीकृत करने के लिए आधिकारिक फ्लटर प्लगइन है। यह विकासकर्ताओं को एंड्रॉइड, आईओएस और वेब प्लेटफॉर्म पर उपयोगकर्ताओं को लक्षित और व्यक्तिगत नोटिफिकेशन भेजने की अनुमति देता है। प्लगइन पुशर की स्केलेबल इंफ्रास्ट्रक्चर के माध्यम से टोकन पंजीकरण, सब्सक्रिप्शन प्रबंधन और संदेश डिलीवरी के माध्यम से वास्तविक समय नोटिफिकेशन प्राप्त करने की प्रक्रिया को सरल बनाता है। कम सेटअप के साथ, विकासकर्ता समय पर, संबंधित अलर्ट के माध्यम से उपयोगकर्ता भागीदारी को बढ़ा सकते हैं। प्लगइन पुशर द्वारा बनाए जाते हैं और उनकी बीम्स सेवा के साथ बिना किसी असुविधा के एकीकृत होते हैं।
उपयोग
लक्षित पुश नोटिफिकेशन भेजना
वास्तविक समय के अलर्ट के माध्यम से उपयोगकर्ता भागीदारी
प्लेटफॉर्म के अनुसार नोटिफिकेशन डिलीवरी
उपयोगकर्ता हितों के आधार पर व्यक्तिगत संदेश
मोबाइल और वेब ऐप्स में रियल-टाइम अपडेट्स
मुख्य विशेषताएँ
ऑफिशियल पुशर प्लगइन
Android, iOS और Web का समर्थन करता है
टोकन प्रबंधन और उपकरण पंजीकरण
सब्सक्रिप्शन-आधारित नोटिफिकेशन लक्षीकरण
सुरक्षित और स्केलेबल बैकएंड इंटीग्रेशन
इनके लिए उपयुक्त
वास्तविक समय की अधिसूचना की आवश्यकता वाले ऐप्स
Pusher Beams सेवा का उपयोग करने वाले विकासकर्मी
क्रॉस-प्लेटफॉर्म मोबाइल और वेब ऐप्स
उपयोगकर्ता-केंद्रित नोटिफिकेशन प्रणाली
गतिशील सामग्री अपडेट वाले एप्लिकेशन
विचार योग्य बातें
Pusher Beams खाता सेटअप की आवश्यकता है
सही Firebase या APNs कॉन्फ़िगरेशन की आवश्यकता है
पुशर के नोटिफिकेशन इंफ्रास्ट्रक्चर पर सीमित
इंटरनेट कनेक्टिविटी पर निर्भर
कस्टम पेलोड के लिए अतिरिक्त बैकएंड लॉजिक की आवश्यकता हो सकती है
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
In order to work with this Flutter plugin you must have a Pusher Beams Account and already got an instanceId within your dashboard, you can Sign Up here.
Android Additional
Firebase Account and a google-services.json (follow this guide). Do not initialize anything, this plugin just requires a google-services.json within your android/app folder.
To install this plugin within you Flutter application, you need to add the package into your pubspec.yaml.
dependencies:pusher_beams:^1.0.1
or with flutter pub
flutter pub add pusher_beams
There are some additional steps for some platforms.
Android
Add this line inside your project-level build.gradle which is located at your android folder
buildscript {
// Your config...
repositories {
// Your repositories...
}
dependencies {
// Your dependencies...// Add this line
classpath 'com.google.gms:google-services:4.2.0'
}
}
Now, on your app-level build.gradle you must include com.google.gms.google-services ( google-services.json must be already included within your app as it's a prerequisite). Just add this line at the end of your app-level build.gradle.
apply plugin: 'com.google.gms.google-services'
Web
Create a file called service-worker.js inside your web folder.
If you already have done the prerequisites, now you can initialize Pusher Beams using the start method as soon as possible (Preferable inside the main function).
This repository is following git flow branching model, so in order to contribute, once you fork this project, you must create a fix/ or feature/ branch, which will be pull requested from you once it's ready.
There's two major tests, our app-facing package test which is run as Integration Test and our platform-interface package test run as Unit Test
Integration Tests
For integration tests, we use the example app provided in packages/pusher_beams/example. In order to run the integration tests you must complete the prerequisites in the example app which is...
You already registered into Pusher Beams platform.
If you already double-check the list above, then you must replace the constant instanceId located on packages/pusher_beams/example/integration_test/pusher_beams_test.dart with a real one from Pusher Beams.
// Code...const instanceId = 'your-instance-id'; // Replace this with a real instanceId// More Code...
So that's all! you can now run the integration test with the following command on the example app path (packages/pusher_beams/example):
As this plugin platform interface is generated by Pigeon and if you modified the file messages.dart from packages/pusher_beams_platform_interface package, in order to generate a new MethodChannel interface you must run the following command on path packages/pusher_beams_platform_interface:
classPusherBeamsApiextendsPusherBeamsPlatform{
// Pigeon Generated Class Code
}
This will require you to change the methods onInterestChanges and setUserId parameter arg_callbackId to type dynamic in order to accomplish PusherBeamsPlatform definition like below:
// Class code...Future<void> onInterestChanges(dynamic arg_callbackId) async {
// onInterestChanges generated function code...
}
Future<void> setUserId(String arg_userId, BeamsAuthProvider arg_provider, dynamic arg_callbackId) async {
// setUserId generated function code...
}
// More class code...
License
Copyright (c) 2015 Pusher Ltd. See LICENSE for details.