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"))! }