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

sms_user_consent कवर
पैकेज विवरणv0.1.0

sms_user_consent

उपयोगकर्ता के फ़ोन नंबर (डुअल सिम के लिए समर्थित) और/या एसएमएस पढ़ने के लिए सहमति के अनुरोध, कोई अनुमति जोड़े बिना

Android
30-दिन डाउनलोड
93
लाइक
85
Pub अंक
160

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

flutter pub add sms_user_consent

पैकेज अवलोकन

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

sms_user_consent पैकेज फ्लटर ऐप्स को एंड्रॉइड पर उपयोगकर्ता के फ़ोन नंबर और/या SMS संदेशों को पढ़ने की अनुमति देने के लिए मांगने की अनुमति देता है, बिना स्पष्ट अनुमतियों के आवश्यकता के। यह एंड्रॉइड के निर्मित SMS अनुमति प्रणाली का उपयोग करता है, जिससे उपयोगकर्ता मानक सिस्टम डायलॉग के माध्यम से पहुंच प्रदान कर सकते हैं। यह पैकेज डुअल-एसआईएम उपकरणों का समर्थन करता है, जिससे विभिन्न एंड्रॉइड हार्डवेयर के साथ संगतता सुनिश्चित होती है। यह ओटीपी सत्यापन या एसएमएस-आधारित प्रमाणीकरण की आवश्यकता वाले ऐप्स के लिए आदर्श है, जो प्रक्रिया को सरल बनाता है जबकि गोपनीयता और सुरक्षा को बनाए रखता है।

उपयोग

  • OTP सत्यापन
  • SMS-आधारित प्रमाणीकरण
  • डुअल-सिम डिवाइस समर्थन
  • गोपनीयता-रक्षित SMS पहुँच
  • उपयोगकर्ता सहमति संग्रह

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

  • अतिरिक्त अनुमति की आवश्यकता नहीं है
  • डुअल-सिम समर्थन
  • Android-केवल समर्थन
  • सिस्टम-स्तरीय सहमति डायलॉग
  • फ़ोन नंबर प्राप्त करना

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

  • OTP इनपुट की आवश्यकता वाले ऐप्स
  • प्रमाणीकरण प्रवाह
  • मैनिफेस्ट की अनुमति के बिना SMS पढ़ना
  • एंड्रॉइड-केंद्रित ऐप्स
  • न्यूनतम अनुमति ऐप्स

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

  • केवल एंड्रॉइड
  • उपयोगकर्ता इंटरैक्शन की आवश्यकता है
  • एसएमएस पढ़ने तक सीमित
  • iOS समर्थन नहीं है
  • प्रणाली-स्तरीय सहमति पर निर्भर करता है

मूल README

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

sms_user_consent

Request user's phone number (supports dual sim) and/or consent to read SMS without adding any permissions, using Android's SMS User Consent API

Screenshots

Steps to use

1] Create an instance, optionally supply phone number listener and sms listener

SmsUserConsent smsUserConsent = SmsUserConsent(
        // optionally, do something when user selects a number.
        // You can even add/update this listener later on by simply 
        // calling smsUserConsent.updatePhoneNumberListener(updatedListener)
        phoneNumberListener: () {},
        
        // optionally, do something when user receives sms.
        // You can even add/update this listener later on by simply 
        // calling smsUserConsent.updateSmsListener(updatedListener)
        smsListener: () {}
);

2a] OPTIONAL : Request user's phone number

smsUserConsent.requestPhoneNumber();

Once the user selects a phone number, it can be accessed as

smsUserConsent.selectedPhoneNumber;

2b] OPTIONAL : Request to receive SMS

smsUserConsent.requestSms(); 

or you can specify the phone number you wish to capture the SMS from

smsUserConsent.requestSms(senderPhoneNumber: sender_number);

Once the user receives a SMS and the user taps Allow, it can be accessed as

smsUserConsent.receivedSms;

3] Finally, dispose the instance

smsUserConsent.dispose();
Note

As per the SMS User Consent API, message will be received by the plugin only if it meets these criteria:

  • The message contains a 4-10 character alphanumeric string with at least one number.
  • The message was sent by a phone number that's not in the user's contacts.
  • If you specified the sender's phone number, the message was sent by that number.

Contributing

  • Found a bug or idea to improve the plugin? Send a PR.
  • Found this plugin helpful and want to thank me? I love :coffee:
  • Want to hire me for a gig? Let's talk on LinkedIn

License

MIT © 2020 Harsh P

श्रेणियाँ

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

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

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