parse-platform

Parse push notifications crashes eventually on background in android

萝らか妹 提交于 2020-01-24 14:13:38
问题 I am using Parse to push notifications in android but it crashes eventually on background when i turn wifi off. it gives me error: java.lang.RuntimeException: Unable to start receiver com.parse.ParseBroadcastReceiver: java.lang.RuntimeException: applicationContext is null. You must call Parse.initialize(context, applicationId, clientKey) before using the Parse library. here is my code public class ParseBroadcastReceiverCustom extends BroadcastReceiver { @Override public void onReceive(final

iOS Multiple save of parse objects with progress bar

♀尐吖头ヾ 提交于 2020-01-24 06:38:07
问题 I found this very interesting approach (Parse : is it possible to follow progress of PFObject upload) and I tried to convert the objective-c category in a swift extension. But I am overstrained with the values types unsigned long . Please have a look in the following code - it throws the exception (line: let progress:Int32 = Int32(100*count/numberOfCyclesRequired) ): fatal error: floating point value can not be converted to Int32 because it is either infinite or NaN. I am also not sure how to

Parse.com Denial of Service by exceeding burst limit

夙愿已清 提交于 2020-01-23 11:09:02
问题 I've used Parse to create an application for iOS using the iOS SDK downloaded from the Parse.com website. In order to create this kind of application the ApplicationID and ClientID keys are both embedded in the iOS app and sent from the app to the server when the application is used. This essentially puts the ApplicationID and ClientID in plain sight so any user can write a small program which would repeatedly call the various Parse apis of my application. I have followed all the security

Parse.com Denial of Service by exceeding burst limit

蹲街弑〆低调 提交于 2020-01-23 11:07:12
问题 I've used Parse to create an application for iOS using the iOS SDK downloaded from the Parse.com website. In order to create this kind of application the ApplicationID and ClientID keys are both embedded in the iOS app and sent from the app to the server when the application is used. This essentially puts the ApplicationID and ClientID in plain sight so any user can write a small program which would repeatedly call the various Parse apis of my application. I have followed all the security

Parse.com Denial of Service by exceeding burst limit

爷,独闯天下 提交于 2020-01-23 11:07:04
问题 I've used Parse to create an application for iOS using the iOS SDK downloaded from the Parse.com website. In order to create this kind of application the ApplicationID and ClientID keys are both embedded in the iOS app and sent from the app to the server when the application is used. This essentially puts the ApplicationID and ClientID in plain sight so any user can write a small program which would repeatedly call the various Parse apis of my application. I have followed all the security

Parse.com & Android: How do I save Images to my parse database so that i can use them as a profile picture

家住魔仙堡 提交于 2020-01-23 04:08:33
问题 I am new at android as well as parse.com. I need a way in which a user can click a button to take a photo or another button to choose a photo from the gallery. Then store the image in my parse.com database so that I can manipulate it with other events in the system. So far I am able to have the user update his status and save to my parse database but I do not know how to manipulate images and ImageViews. Here is my code so far: public class UpdateActivity extends Activity { protected EditText

Parse.com & Android: How do I save Images to my parse database so that i can use them as a profile picture

若如初见. 提交于 2020-01-23 04:08:15
问题 I am new at android as well as parse.com. I need a way in which a user can click a button to take a photo or another button to choose a photo from the gallery. Then store the image in my parse.com database so that I can manipulate it with other events in the system. So far I am able to have the user update his status and save to my parse database but I do not know how to manipulate images and ImageViews. Here is my code so far: public class UpdateActivity extends Activity { protected EditText

Open activity by clicking on the push notification from Parse

此生再无相见时 提交于 2020-01-22 13:54:26
问题 I want to receive a push notification from Parse and open an List activity and use intent.putextra("dataFromParse") before starting the activity. I'm able to receive the push but only open the MainActivity by using this: PushService.setDefaultPushCallback(this, MainActivity.class); ParseInstallation.getCurrentInstallation().saveInBackground(); I want to have this as the default, but should also be able to start the List activity. I have also tried using a customer receiver, but then I'm only

Open activity by clicking on the push notification from Parse

柔情痞子 提交于 2020-01-22 13:52:07
问题 I want to receive a push notification from Parse and open an List activity and use intent.putextra("dataFromParse") before starting the activity. I'm able to receive the push but only open the MainActivity by using this: PushService.setDefaultPushCallback(this, MainActivity.class); ParseInstallation.getCurrentInstallation().saveInBackground(); I want to have this as the default, but should also be able to start the List activity. I have also tried using a customer receiver, but then I'm only

Parse.com create stripe card token in cloud code (main.js)

回眸只為那壹抹淺笑 提交于 2020-01-22 02:41:05
问题 I am looking to create stripe token in parse cloud code.. I dont want to create token in client side HTML page. My complete web application is in HTML + Javascript so dont want to expose my Stripe.setPublishableKey('pk_test_xxxxxxx'); Because of this reason interest to define function in cloud code. Parse.Cloud.define("addCreditCard", function(request, response) { var token; var group; var Stripe = require('https://js.stripe.com/v2/'); Stripe.setPublishableKey('pk_test_xxxxxxxxx'); Stripe