parse-platform

How to use promise bluebird in nested for loop?

一个人想着一个人 提交于 2020-01-26 02:04:09
问题 I need to use bluebird in my code and I have no idea how to use it. My code contains nested loops. When the user logs in, my code will run. It will begin to look for any files under the user, and if there are files then, it will loop through to get the name of the files, since the name is stored in a dictionary. Once it got the name, it will store the name in an array. Once all the names are stored, it will be passed along in res.render(). Here is my code: router.post('/login', function(req,

String cannot be resolved or is not a field? [closed]

≡放荡痞女 提交于 2020-01-25 12:09:30
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . Basically I have a login and sign up code for Parse. I'm working off of this tutorial. I have: LoginSignupActivity.java package com.androidbegin.parselogintutorial; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view

Build.Gradle issues when using Facebook SDK 4.0.0 and Parse.com libraries in Android

跟風遠走 提交于 2020-01-25 11:02:09
问题 I've narrowed down the problem to overlapping dependencies within my project, however, I'm not sure which dependencies to exclude for my project to build properly. If I delete the ParseFacebookUtilsV3 files from my libs folder, then I get another DexException with a duplicate LBolts/AggregateException. Here is my gradle.build file: apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "21.1.2" defaultConfig { applicationId "kevts.washington.edu.fiternity"

how to query parse for all push notifications in swift?

时光毁灭记忆、已成空白 提交于 2020-01-25 10:58:08
问题 Does anyone know a good tutorial dealing with 1. parse push notification queries 2. in swift I would like to query parse for all notifications sent to a specific user(these could be sent from different users) and handle the notification data accordingly. Not only would I like to know how to query this but where the code should be. I havent found a good tutorial on google that matches all the criteria. OR is there a way to force all the notifications in notification center to open in the app.

Exception when getting data back from Parse Server's ParseFile

孤街醉人 提交于 2020-01-25 07:29:06
问题 I'm storing some images on Parse Server for my Instagram Clone app. When trying to retrieve them using: ParseFile file = imageToDisplay.getParseFile("image"); byte[] data = file.getData(); everything works just fine as long as there are still some images in cache but if I reinstall the app or try to get data of other users images I get an exception: 2019-12-12 14:24:44.005 15502-15502/com.example.instagramclone E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.instagramclone, PID:

Offline caching with Parse.com?

余生长醉 提交于 2020-01-25 05:37:28
问题 I was trying to make my app based on parse.com available offline, the official tutorial can be found here: blog.parse.com/2014/04/30/take-your-app-offline-with-parse-local-datastore/ In my app, I provide a button to connect to internet, get the list of all ParseObjects I want to keep and pin them all. My app is just a listview that populates from local datastore. When I tried my app with airplane mode on, I was hoping that it could load from previous objects that have been pinned. But it

How can I convert background jobs to something like functions?

这一生的挚爱 提交于 2020-01-25 05:11:04
问题 I am making a newsreader app and using Parse.com background jobs to collect links from RSS feed of the newspaper. I have used xmlreader.js and sax.js to parse the httpResponse and using saveAll and beforeSave, periodically update the classes in data browser. I have multiple newspapers with multiple categories making a total of more than 30 pairs, (I would have to later include more pair as I would like to include regional newspapers). Till now I was working with one newspaper and one category

Retrieve boolean from user class in Parse

自作多情 提交于 2020-01-24 23:04:42
问题 I can't figure out how to retrieve a boolean from the user class in Parse. This code doesn't work for me: PFUser *user = [PFUser currentUser]; NSNumber *boolNumber = [user objectForKey:@"bool"]; BOOL b = [boolNumber boolValue]; NSLog(@"%d", b); Anyone know the proper way to do this? 回答1: Everything you're doing looks fine on retrieval. It's probably an error with the way you are setting the variable/saving the user. Try something like this and see if it works. PFUser *user = [PFUser

Intel XDK : Parse.com integration “Unauthorized”

我的梦境 提交于 2020-01-24 21:45:16
问题 I am very new to Intel XDK and i try to make a very simple app like this in that video tutorial: Using Services Datafeed in App Designer. But instead of the specific service from Rotten Tomatoes i want to integrate a database i have in Parse.com. For that i followed this video tutorial: "Integrating a New Service" "[https]://software.intel.com/en-us/html5/videos/integrating-a-new-service", and at the end the response was: "Unauthorized" . Then i found only this answer which comes from Intel's

ParseQueryException: Bad protocol (Android SDK)

淺唱寂寞╮ 提交于 2020-01-24 17:21:35
问题 I'm using Parse's Android SDK as my back-end, and sometimes the queries are taking a very long time, even when using my 100Mb WiFi connection, and even though I only have less than 10 Users and 30 records in all the Parse classes combined. Sometimes I get the list (after a long time of waiting), but sometimes the error i receive is "ParseQueryException: Bad protocol" Maybe my queries are to blame. Here's an example of a (usually) slow query, trying to find all my user's roommates, meaning,