From 74357145f1f9a5561ba0e66f17040bcfb731fad2 Mon Sep 17 00:00:00 2001 From: Richard Ross Date: Mon, 9 May 2016 17:24:45 -0700 Subject: [PATCH] Update examples to use better path construction, and make Message query actually work. --- Examples/LiveQueryDemo/Info.plist | 5 +++++ Examples/LiveQueryDemo/main.swift | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Examples/LiveQueryDemo/Info.plist b/Examples/LiveQueryDemo/Info.plist index 56c22a6b..ce936cd9 100644 --- a/Examples/LiveQueryDemo/Info.plist +++ b/Examples/LiveQueryDemo/Info.plist @@ -2,6 +2,11 @@ + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + CFBundleDevelopmentRegion en CFBundleExecutable diff --git a/Examples/LiveQueryDemo/main.swift b/Examples/LiveQueryDemo/main.swift index 2b37a58a..2f4863e1 100644 --- a/Examples/LiveQueryDemo/main.swift +++ b/Examples/LiveQueryDemo/main.swift @@ -19,7 +19,7 @@ Parse.initializeWithConfiguration(ParseClientConfiguration { $0.server = "http://localhost:1337/parse" }) -let liveQueryClient = ParseLiveQuery.Client(server: "http://localhost:1337") +let liveQueryClient = ParseLiveQuery.Client() class ChatRoomManager { private var currentChatRoom: Room? @@ -28,7 +28,7 @@ class ChatRoomManager { var connected: Bool { return currentChatRoom != nil } var messagesQuery: PFQuery { return (Message.query()? - .whereKey("room_name", equalTo: currentChatRoom!.name!) + .whereKey("roomName", equalTo: currentChatRoom!.name!) .orderByAscending("createdAt"))! }