-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ie: [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: FormatException: Invalid envelope #60
Comments
I am getting the same issue. Let me know if you need help to reproduce. |
Same problem here!! |
@Rajeshhmuthyala @COCPORN @hsult4n please post steps / code to reproduce. Thanks |
Disclaimer: I am totally new to flutter. I can provide a full repo that compiles and runs, but this here is the offending code:
|
same problem... any solutions? |
The same problem |
I had the same problem. For solving this problem you should apply permissions on write data in contacts. It's a dangerous permissions, so add permission only in manifest is not enough. For call window applying or dinying permissions you can use permission_handler 4.2.0 . await PermissionHandler().requestPermissions([PermissionGroup.contacts]); After calling this method you can apply permission and contact will be added. By the way, this solution is needed only for android devices with Android 6.0 (API level 23) or higher. In lower versions you apply all permissions, when install your app. This question is on StackOverFlow. You can raise a question and answer this on StackOverFlow to inform more people. |
@AndreyMolochko 's answer worked for me, thanks! |
#60 (comment) looks like the working solution here. Closing this issue. |
await ContactsService.addContact(Contact(
givenName: contactdetails.Firstname,
phones: [phoneNumber]
));
The text was updated successfully, but these errors were encountered: