public RealmDataStore() { // Setup offline database var config = new RealmConfiguration("ddr-track-starter.realm"); realm = Realm.GetInstance(config); // Test local dummy data InitializeSongs(); // Setup online config app = Realms.Sync.App.Create(Constants.RealmAppID); }
protected override void OnStart() { RealmApp = Realms.Sync.App.Create(appId); if (App.RealmApp.CurrentUser == null) { MainPage = new NavigationPage(new LoginPage()); } else { MainPage = new NavigationPage(new ProjectPage()); } }
public App() { InitializeComponent(); // Register Services // //DependencyService.Register<MockDataStore>(); // Create the RealmApp // RealmApp = Realms.Sync.App.Create(appId); MainPage = new AppShell(); }
protected override void OnStart() { // :code-block-start:open-realm // :state-start: final RealmApp = Realms.Sync.App.Create(appId); //:state-end: :state-uncomment-start: start //// TODO: call Realms.Sync.App.Create() // :state-uncomment-end: // :code-block-end: if (App.RealmApp.CurrentUser == null) { MainPage = new NavigationPage(new LoginPage()); } else { MainPage = new NavigationPage(new ProjectPage()); } }