receive_sharing_intent icon indicating copy to clipboard operation
receive_sharing_intent copied to clipboard

iOS, [User Defaults] Couldn't read values in CFPrefsPlistSource

Open JeanChristopheMobizel opened this issue 4 years ago • 4 comments

I follow all steps to install iOS. I only skip

<!--TODO:  Add this tag, if you want support opening urls into your app-->
    <key>com.apple.developer.associated-domains</key>
    <array>
        <string>applinks:example.com</string>
    </array>

From app File, i try to open a pdf file with my App. My App launch but I go the following message: [User Defaults] Couldn't read values in CFPrefsPlistSource<0x283fd5e00> (Domain: group.my.bundle.id, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd

I also receive a SharedMediaFile with a path : file:///private/var/mobile/Containers/Shared/AppGroup/.......... But the file does not exist.

What I my missing?

JeanChristopheMobizel avatar Jan 15 '21 15:01 JeanChristopheMobizel

https://smashswift.com/how-to-share-user-defaults-with-extensions/

My issue come from elsewhere...

JeanChristopheMobizel avatar Jan 22 '21 15:01 JeanChristopheMobizel

the received path has a prefix "file://" for non-media type file

beelabcloud avatar Feb 04 '21 07:02 beelabcloud

remove the file:// would be ok

beelabcloud avatar Feb 04 '21 07:02 beelabcloud

i've fired in a PR to try and fix this issue (https://github.com/KasemJaffer/receive_sharing_intent/pull/137)

try adding this to your pubspec.yaml file...

receive_sharing_intent:
    git:
      url: https://github.com/LazyDave76/receive_sharing_intent.git

LazyDave76 avatar Feb 25 '21 20:02 LazyDave76