flutter_contacts | Contacts Service - A Flutter plugin | Plugin library
kandi X-RAY | flutter_contacts Summary
kandi X-RAY | flutter_contacts Summary
Contacts Service - A Flutter plugin to retrieve and manage contacts on Android and iOS devices. Maintainer: @lukasgit
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Handler for contacts
- Update the contact
- Add a contact to the content provider
- Creates a new Contact object from the given map
- Gets a list of contacts from a cursor
- Get the label for a phone number
- Gets the email label
- Serialize contact information to contact map
- Returns a hash map with the label value
- Serialize to a map
- Get a cursor for the given phone number
- Loads the photo
- Sets the avatar data for a contact
- Create a cursor to use
- Read the label
- Register the contacts with the registrar
- Called when the plugin is created
flutter_contacts Key Features
flutter_contacts Examples and Code Snippets
Community Discussions
Trending Discussions on flutter_contacts
QUESTION
I am new to flutter development and currently developing 4 apps at the same time. So I want to share codes between these apps by creating plugin or package. But I don't understand what to choose between package or plugin for my case.
I will be writing only dart codes in this sharable codes but I will be using other plugins from pub.dev which have native codes in them like Kotlin and Swift example flutter_contacts which have java and swift codes in it.
So what should I choose between plugin and package for this scenario.
TLDR
- Can a package use plugins in it and still be a package?
ANSWER
Answered 2020-Jul-29 at 13:59A "package" contains only Dart code.
A "plugin" contains both Dart and Native code (kotlin/js/swift/...)
A package can use plugins if it wants to. It will still qualify as a package.
QUESTION
I've guessed the Users Address from their GPS, looking up their location using Google's Places, but the output of that is pretty variable (no locality oftentimes, outside cities a consistent locality field would be helpful to my app). The thing is I do NEED the users home address for my app to work, but they may not be at home when they download the app.
I'd prefer to get their address from contacts. I've looked at a couple of Flutter plugins for accessing the address book, flutter_contacts, etc., but I can't see how you simply get the users details. So how do I request the Users HOME address, HOME email, MOBILE phone, whatever I can get from the device? Age might actually be beneficial too, so I could pivot the app to the needs of those who are using it.
I feel this is such a commonly useful thing it should have its own special permission, rather than the blunt one of exposing their entire contacts address book. So is there a better way of doing it? Less invasive so the user can more easily consent?
...ANSWER
Answered 2020-Apr-24 at 10:34There's a special contact called "Profile" that contains the user's details if they bothered to add them on their phones, but in most cases it'll be empty, and anyway, accessing the user's profile requires the "Read Contacts" permission.
It'll be strange to ask the user for the "Read contacts" permission without they understanding why on earth would your app require such a permission "to guess your address" is not a very good reason. And I suppose might cause some users to uninstall and/or flag your app as potential spyware.
If you app relies on having the user's address, you should instead simply pop a dialog with a question to the user to fill out their address manually.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install flutter_contacts
You can use flutter_contacts like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the flutter_contacts component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page