receive_sharing_intent
receive_sharing_intent copied to clipboard
iOS, [User Defaults] Couldn't read values in CFPrefsPlistSource
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?
https://smashswift.com/how-to-share-user-defaults-with-extensions/
My issue come from elsewhere...
the received path has a prefix "file://" for non-media type file
remove the file:// would be ok
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