{"action":"opened","issue":{"url":"https://api.github.com/repos/realm/realm-dotnet/issues/1732","repository_url":"https://api.github.com/repos/realm/realm-dotnet","labels_url":"https://api.github.com/repos/realm/realm-dotnet/issues/1732/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-dotnet/issues/1732/comments","events_url":"https://api.github.com/repos/realm/realm-dotnet/issues/1732/events","html_url":"https://github.com/realm/realm-dotnet/issues/1732","id":320976824,"number":1732,"title":"On Xamarin Android gets stuck on Realm.GetInstanceAsync call when using Realm Cloud Platform ","user":{"login":"rdelrosario","id":2547751,"avatar_url":"https://avatars2.githubusercontent.com/u/2547751?v=4","gravatar_id":"","url":"https://api.github.com/users/rdelrosario","html_url":"https://github.com/rdelrosario","followers_url":"https://api.github.com/users/rdelrosario/followers","following_url":"https://api.github.com/users/rdelrosario/following{/other_user}","gists_url":"https://api.github.com/users/rdelrosario/gists{/gist_id}","starred_url":"https://api.github.com/users/rdelrosario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdelrosario/subscriptions","organizations_url":"https://api.github.com/users/rdelrosario/orgs","repos_url":"https://api.github.com/users/rdelrosario/repos","events_url":"https://api.github.com/users/rdelrosario/events{/privacy}","received_events_url":"https://api.github.com/users/rdelrosario/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-07T22:13:14Z","updated_at":"2018-05-07T22:13:14Z","closed_at":null,"author_association":"NONE","body":"When using Realm Platform Cloud cannot get the realm instance on Xamarin Android task never returns a result when calling Realm.GetInstanceAsync.\r\n\r\nCode snippet.\r\n\r\n```cs\r\n    var credentials = Credentials.UsernamePassword(\"user\", \"password\", false);\r\n    var user = await User.LoginAsync(credentials, new Uri($\"https://{SyncHost}\");\r\n    var realm =  await Realm.GetInstanceAsync(new SyncConfiguration(user,new Uri($\"realms://{SyncHost}/studenthub\"));\r\n```\r\n\r\nCode gets stuck on Realm.GetInstanceAsync call.\r\n\r\n## Goals\r\n\r\nTrying to get the realm database instance on Xamarin Android.\r\n\r\n## Expected Results\r\n\r\nShould behave as on iOS and return the Realm instance.\r\n\r\n## Actual Results\r\n\r\nWhen running on Xamarin Android never gets a response from Realm.GetInstanceAsync method. On iOS works perfectly.\r\n\r\n## Steps to Reproduce\r\n\r\nOn Xamarin Android:\r\n\r\n1. Create a realm platform cloud instance\r\n2. Create a realm path with some classes inside.\r\n3. Create a Realm User \r\n4. Try to login with username/password\r\n5. Try to get realm by using Realm.GetInstanceAsync\r\n\r\n## Code Sample\r\n\r\n```cs\r\n    var credentials = Credentials.UsernamePassword(\"user\", \"password\", false);\r\n    var user = await User.LoginAsync(credentials, new Uri($\"https://{SyncHost}\");\r\n    var realm =  await Realm.GetInstanceAsync(new SyncConfiguration(User.Current,new Uri($\"realms://{SyncHost}/studenthub\"));\r\n```\r\n\r\n## Version of Realm and Tooling\r\n\r\n- Realm Cloud\r\n- Flavor:\r\n  - [X ] Developer\r\n  - [ ] Professional\r\n  - [ ] Enterprise\r\n- Server OS & Version: ? (e.g. CentOS 6)\r\n- Client SDK Version:  3.0.0\r\n- Client OS & Version: Android 6.0\r\n\r\n"}}
{"actor":{"display_login":"rdelrosario"}}