parse-cloud


Parse Cloud with Swift PFIdResultBlock Error

一世执手 提交于 2019-12-31 07:15:11
问题 PFCloud.callFunctionInBackground("hello", withParameters: ["test":"tester"]) { (response: AnyObject?, error: NSError?) -> Void in if error == nil { let responseString = response as? String print(responseString) } else { print(error!.description) } } I am getting the error: Cannot convert value of type '(AnyObject?, NSError?) -> Void' to expected argument type 'PFIdResultBlock?' (aka 'Optional<(Optional, Optional) -> ()>') Even if I add as! PFIdResultBlock , the error will not go away. How can

fullText is not working in Parse Server with Mlab [closed]

ⅰ亾dé卋堺 提交于 2019-12-13 03:41:32
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 15 days ago . I am running parse server(2.8.4) on heroku with Mlab. I a trying to search based on word match but the fullText throwing an error,here is my query: var query1 = new Parse.Query("SearchTerms"); query1.fullText("searchString", "programmer"); It throwing below error: ParseError {

Sending friend-request using firebase on Android

一曲冷凌霜 提交于 2019-12-10 10:35:39
问题 I'm migrating from Parse to Firebase. My sendRequest function does the following tasks (Assume user1 sends request to user2) -Check if the username exists -Check if user1 has not already sent a request to user2 -Check if user1 and user2 are not already friends Once these are done user2 receives a pushNotification and the respective fields are updated. How would I do this on firebase considering the following structure? Would it have something to do with firebase-rules? Users 290384239843

Parse Cloud with Swift PFIdResultBlock Error

不羁岁月 提交于 2019-12-02 10:14:52
PFCloud.callFunctionInBackground("hello", withParameters: ["test":"tester"]) { (response: AnyObject?, error: NSError?) -> Void in if error == nil { let responseString = response as? String print(responseString) } else { print(error!.description) } } I am getting the error: Cannot convert value of type '(AnyObject?, NSError?) -> Void' to expected argument type 'PFIdResultBlock?' (aka 'Optional<(Optional, Optional) -> ()>') Even if I add as! PFIdResultBlock , the error will not go away. How can I go about fixing this? I definitely appreciate your help on this one!! There is no need to specify

Parse Cloud - LiveQueries - iOS Client doesn't work

我的梦境 提交于 2019-11-28 12:16:37
I'm trying to use Parse LiveQueries. I use this Parse "Bootstrap": " https://github.com/parse-community/parse-server ", I can see the logs: info: Create new client: 1 , but I just do not get the update in the query although I have subscribed it. It doesn't even reach the handler of the subscription.handle . config.json : { "appId": "", "masterKey": "", "appName": "", "cloud": "./cloud/main", "databaseURI": "", "publicServerURL": "", // Relevant "startLiveQueryServer": true, "liveQuery": { "classNames": ["Channel"] }, } AppDelegate.swift : // Initialize Parse. let configuration =

Parse Cloud - LiveQueries - iOS Client doesn't work

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-27 06:52:26
问题 I'm trying to use Parse LiveQueries. I use this Parse "Bootstrap": "https://github.com/parse-community/parse-server", I can see the logs: info: Create new client: 1 , but I just do not get the update in the query although I have subscribed it. It doesn't even reach the handler of the subscription.handle . config.json : { "appId": "", "masterKey": "", "appName": "", "cloud": "./cloud/main", "databaseURI": "", "publicServerURL": "", // Relevant "startLiveQueryServer": true, "liveQuery": {

工具导航Map