{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/4490","repository_url":"https://api.github.com/repos/realm/realm-cocoa","labels_url":"https://api.github.com/repos/realm/realm-cocoa/issues/4490/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-cocoa/issues/4490/comments","events_url":"https://api.github.com/repos/realm/realm-cocoa/issues/4490/events","html_url":"https://github.com/realm/realm-cocoa/issues/4490","id":197606983,"number":4490,"title":"Support app group container with synchronized Realm","user":{"login":"ewerx","id":671604,"avatar_url":"https://avatars2.githubusercontent.com/u/671604?v=3","gravatar_id":"","url":"https://api.github.com/users/ewerx","html_url":"https://github.com/ewerx","followers_url":"https://api.github.com/users/ewerx/followers","following_url":"https://api.github.com/users/ewerx/following{/other_user}","gists_url":"https://api.github.com/users/ewerx/gists{/gist_id}","starred_url":"https://api.github.com/users/ewerx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewerx/subscriptions","organizations_url":"https://api.github.com/users/ewerx/orgs","repos_url":"https://api.github.com/users/ewerx/repos","events_url":"https://api.github.com/users/ewerx/events{/privacy}","received_events_url":"https://api.github.com/users/ewerx/received_events","type":"User","site_admin":false},"labels":[{"id":154681002,"url":"https://api.github.com/repos/realm/realm-cocoa/labels/S:Idea%20Backlog","name":"S:Idea Backlog","color":"dedede","default":false},{"id":3303144,"url":"https://api.github.com/repos/realm/realm-cocoa/labels/T:Enhancement","name":"T:Enhancement","color":"bfe5bf","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-26T17:29:32Z","updated_at":"2017-05-10T10:08:08Z","closed_at":null,"body":"## Goals\r\n\r\nI am currently sharing a realm db between an iOS app and its today widget extension by storing the realm in the application group container directory and setting this path in the Realm configuration's `fileURL`:\r\n\r\n```\r\nvar config = Realm.Configuration()\r\nconfig.fileURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: appGroupIdentifier)!.appendingPathComponent(dbFilename)\r\nRealm.Configuration.defaultConfiguration = config\r\n```\r\n\r\nNow I want to add cloud sync features to the app using Realm Mobile Platform, but it is not possible to specify both a `fileURL` and a `syncConfiguration` in the Configuration. How can I enable synchronization and have both the app and extension continue to access the existing db that's stored in the group container?\r\n\r\nRelated StackOverflow question (not mine): https://stackoverflow.com/questions/40785346/swift-realm-mobile-platform-today-extension\r\n\r\n## Expected Results\r\n\r\nIt's possible to synchronize a Realm db stored in the app group container directory."},"comment":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/comments/300437300","html_url":"https://github.com/realm/realm-cocoa/issues/4490#issuecomment-300437300","issue_url":"https://api.github.com/repos/realm/realm-cocoa/issues/4490","id":300437300,"user":{"login":"brock190","id":23736284,"avatar_url":"https://avatars2.githubusercontent.com/u/23736284?v=3","gravatar_id":"","url":"https://api.github.com/users/brock190","html_url":"https://github.com/brock190","followers_url":"https://api.github.com/users/brock190/followers","following_url":"https://api.github.com/users/brock190/following{/other_user}","gists_url":"https://api.github.com/users/brock190/gists{/gist_id}","starred_url":"https://api.github.com/users/brock190/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brock190/subscriptions","organizations_url":"https://api.github.com/users/brock190/orgs","repos_url":"https://api.github.com/users/brock190/repos","events_url":"https://api.github.com/users/brock190/events{/privacy}","received_events_url":"https://api.github.com/users/brock190/received_events","type":"User","site_admin":false},"created_at":"2017-05-10T10:08:08Z","updated_at":"2017-05-10T10:08:08Z","body":"Are there any further updates on this issue?\r\n\r\nI am sharing the local db with the today widget and Watch, so it would be good if it was possible to \r\nsynchronize a Realm db stored in the app group container directory,\r\neven if migrating a non-synced Realm directly to a synced Realm was not supported.\r\n"}}
{"actor":{"display_login":"brock190"}}