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

पैकेज विवरणv4.0.1

persona_flutter

Flutter के लिए पर्सना जांच। iOS और Android के मूल v2 SDK को एकीकृत करता है।

AndroidiOS
30-दिन डाउनलोड
3.4 हज़ार
लाइक
26
Pub अंक
150

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

flutter pub add persona_flutter

पैकेज अवलोकन

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

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

उपयोग

  • प्रयोगकर्ता ओनबोर्डिंग सहित पहचान पुष्टि
  • KYC नियमों का पालन करना
  • सुरक्षित खाता निर्माण
  • वित्तीय एप्प में धोखाधड़ी रोकथाम
  • सरलीकृत पंजीकरण प्रक्रियाएँ

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

  • iOS और Android के लिए मूल सीडीके एकीकरण
  • Flutter विकासकर्ताओं के लिए सरलीकृत API
  • Persona के v2 SDK का समर्थन
  • क्रॉस-प्लेटफॉर्म सुसंगतता
  • रियल-टाइम सत्यापन कार्यप्रवाह

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

  • वित्तीय सेवा एप्प
  • नियमित बाजार
  • पहचान-संवेदनशील प्लेटफॉर्म
  • संगति की आवश्यकता वाले मोबाइल ऐप्स
  • iOS और Android के लिए Flutter का उपयोग करने वाले विकासकर्मी

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

  • वैध Persona API कीज़ की आवश्यकता होती है
  • मूल SDK संस्करणों पर निर्भर
  • अतिरिक्त ऐप की अनुमति की आवश्यकता हो सकती है
  • iOS और Android प्लेटफॉर्म के लिए सीमित
  • उपयोगकर्ता सहमति और डेटा गोपनीयता का उचित प्रबंधन की आवश्यकता है

मूल README

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

Persona Inquiry for Flutter

pub likes downloads donate

Native implementation of the Persona Inquiry flow for Flutter.

This plugin integrates the native v2 SDKs:

Feel free to leave any feedback here.

Important: Persona stopped support for v1 on December 31, 2022. If you need the older mobile integration, check the version 2.1.5 of this plugin or v1 branch of this repository.

Installation

Add persona_flutter as a dependency in your pubspec.yaml file.

Migrating from 3.x to 4.0.0

Version 4.0.0 includes several breaking changes:

  • Toolchain Upgraded: Requires AGP 8.9.1, Gradle 8.11.1, Kotlin 2.1.0, compileSdk 36, and JDK 17+.
  • Removed routingCountry parameter: The routingCountry option has been removed from all configuration classes (TemplateIdConfiguration, TemplateVersionConfiguration, InquiryIdConfiguration). If you were using this parameter, remove it from your configuration calls.

iOS

Requirements
  • iOS 13.0 or later is required.

  • Update your ios/Runner/Info.plist:

    <key>NSCameraUsageDescription</key>
    <string>This app requires access to the camera.</string>
    <key>NSPhotoLibraryUsageDescription</key>
    <string>This app requires access to the photo library.</string>
    
  • Optionally if you need support for video, NFC verifications or GPS collections, add to your ios/Runner/Info.plist:

    <key>NSMicrophoneUsageDescription</key>
    <string>This app requires access to the microphone.</string>
    <key>NFCReaderUsageDescription</key>
    <string>This app requires access to the NFC.</string>
    <key>NSLocationWhenInUseUsageDescription</key>
    <string>This app requires access to the Location when in use.</string>
    

Note: Cocoapods 1.9.3 has a bug that prevents builds from selecting the correct architecture. See more details here. Please downgrade to 1.8.x or upgrade to 1.10.x

Privacy

The Persona SDK collects a user’s IDFV for fraud prevention purposes. In App Store Connect > Your App > App Privacy, if you haven’t already add in a “Device Identifier,” and fill out the questionnaire with the following answers:

  • Usage: App Functionality (covers fraud prevention)
  • Are the device IDs collected from this app linked to the user’s identity? Yes
  • Do you or your third-party partners use device IDs for tracking purposes? No

Be sure to also update your privacy manifest according to the features you are making use of from the SDK. See our iOS Privacy Manifest instructions for more information.

Android

Requirements
  • JDK 17 or later is required.

  • Change the minSdkVersion to 21 (or higher) in your android/app/build.gradle file.

  • Declare the following permissions:

    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.INTERNET" />
    
Privacy

This SDK collects a user’s App-Set ID for Fraud Prevention purposes. When publishing to the Play Store, disclose the usage of Device Identifiers as follows:

  • Data Types: Device or other IDs
  • Collected: Yes
  • Shared: No
  • Processed Ephemerally: No
  • Required or Optional: Required
  • Purposes: Fraud Prevention
Theming

Using the styles.xml of your app, you can set colors, buttons and more to customize the Persona flow to your own style. Just extend the base Persona style Base.Persona.Inquiry2.Theme and name it Persona.Inquiry2.Theme.

<style name="Persona.Inquiry2.Theme" parent="@style/Base.Persona.Inquiry2.Theme">
    <item name="colorPrimary">#22CB8E</item>
    <item name="colorAccent">#22CB8E</item>
    <item name="colorPrimaryDark">#167755</item>
</style>

and in your InquiryConfiguration set the theme:

...
theme: InquiryTheme(source: InquiryThemeSource.client)
...

Important: Client side theming is deprecated. Themes can be managed in the Dashboard with Persona's visual editor. See the detailed tutorial for more information.

Usage

Starting an Inquiry

To start a Persona inquiry flow, first initialize it with a configuration, then call start:

// Initialize the inquiry
await PersonaInquiry.init(configuration: yourConfiguration);

// Start the inquiry flow
await PersonaInquiry.start();
Disposing an Inquiry

If you need to programmatically close the inquiry flow and clean up resources, use the dispose() method:

await PersonaInquiry.dispose();

This is useful when:

  • You need to cancel an ongoing inquiry from your app's logic
  • You want to clean up resources before starting a new inquiry
  • Your app needs to navigate away while an inquiry is in progress

Note: On iOS, calling dispose() will dismiss the inquiry UI if it's currently presented. On Android, it will clear the inquiry reference.

Listening to Events

Subscribe to inquiry events to handle completion, cancellation, and errors:

// Listen for successful completion
PersonaInquiry.onComplete.listen((InquiryComplete event) {
  print('Inquiry completed: ${event.inquiryId}');
  print('Status: ${event.status}');
  print('Fields: ${event.fields}');
});

// Listen for cancellation
PersonaInquiry.onCanceled.listen((InquiryCanceled event) {
  print('Inquiry canceled: ${event.inquiryId}');
});

// Listen for errors
PersonaInquiry.onError.listen((InquiryError event) {
  print('Inquiry error: ${event.error}');
});

Remember to cancel your stream subscriptions when disposing your widget:

@override
void dispose() {
  _streamComplete.cancel();
  _streamCanceled.cancel();
  _streamError.cancel();
  super.dispose();
}

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 1 आइटम

  • plugin_platform_interface^2.1.2

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

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

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