parse-platform

How to register my android app to parse site

不问归期 提交于 2020-01-14 14:39:08
问题 How should i register my android app (or) device to parse push site to get the notification. now i was connected to GCM. am not able to step ahead and register my device with parse... 回答1: Here's the best way to implement official Parse SDK for standard push notification based on my experiences and several trial and errors and also many SO and Parse threads reading . So I'll walk you through these steps: Add the following dependencies to the app build.gradle file, and you can get the latest

Swift : Parse, query date field based on nsdate()

烂漫一生 提交于 2020-01-14 14:31:48
问题 i am trying to retrieve records which were added today to parse, but the query does not return any results. how can i get the query to return the results based on todays date. let now = NSDate() var query = PFQuery(className:"userBids") query.whereKey("date", equalTo: now) the parse date field is set to date. please help 回答1: Your problem is that NSDate is not just a date, it's an exact moment in time. And you're very likely to have exactly no records from this precise date and moment in time

Using parses Facebook login api, results in current user null

非 Y 不嫁゛ 提交于 2020-01-14 13:37:11
问题 I am using parse to crate a simple demo site that allows users to login/signup using their Facebook account. the login returns success, i also get correct user name i also see the database get populated with the facebook acount data but back at app.js: Parse.User.current() is null Jvascript on client side (index.html) <script> // Initialize Parse Parse.initialize("zzzzzzzzzzzzzzzzzzzzz", "zzzzzzzzzzzzzzzzzzzzzzzz"); window.fbAsyncInit = function() { Parse.FacebookUtils.init({ // this line

Parse and watchkit extension

*爱你&永不变心* 提交于 2020-01-14 08:48:20
问题 I am building an app using WatchKit and would like to populate a Table with data from PFObjects I have in a class but I got this error: Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'This decoder will only decode classes that adopt NSSecureCoding. Class 'PFObject' does not adopt it.' Having the same problem as this post 回答1: Have you considered adding a Swift extension to PFObject that adopts the NSSecureCoding protocol? I haven't tried this action

Parse.com: with parseUser, how can I save data in a column I created in parse from the class?

二次信任 提交于 2020-01-14 08:06:09
问题 I am using Android Studio for my app and Parse for my database... and on the create an account page I have, it allows the user to enter in first name, last name, email, username, and password. But my code is using parseUser... I don't know how to set the first and last name in the database. I know setUsername, setPassword, setEmail is a part of it... but what about if you make a column in Parse? How can you add this in your class? This is a part of my code, what it looks like...my problem is

Parse iOS - How to query PFUser details from another class

别说谁变了你拦得住时间么 提交于 2020-01-14 05:18:08
问题 I am trying to write a Parse query for my iOS social app that will show all users that are following the active user. Here is what I have so far: PFQuery *followingUser = [PFQuery queryWithClassName:@"Activity"]; [followingUser whereKey:@"Activity" equalTo:@"follow"]; [followingUser whereKey:@"fromUser" equalTo:self.user]; [followingUser includeKey:@"User"]; [followingUser setCachePolicy:kPFCachePolicyCacheThenNetwork]; Currently this correctly gives me all the records of the active user

Migrate parse “deviceToken” to FCM registration token

旧巷老猫 提交于 2020-01-14 05:09:05
问题 I have thousands of users on Parse, and we are sending push notifications to them using parse. Now we are migrating to firebase and can't guarantee that all users will open the app so FCM gets the new FCM registration token. The question is can I send to old Parse users given I have their Parse device token (from installation table)? 回答1: I'm pretty sure you can't just import the tokens used by parse.com to Firebase Cloud Messaging for use. What should be done is to register your client app

Playing Audio From Parse.com

自作多情 提交于 2020-01-13 19:51:30
问题 I am trying to play an audio file i saved on parse. I am getting the url from the PFFile from the object i saved to parse. When i run the app the avplayer produces no audio. I tested to see if the avplayer was playing by the first code snippet below and it prints out "Playing" which means the player is playing but no audio. I also tried setting the volume for avplayer and that didn't help. Don't understand why it won't play if anyone would like to help me out. Audio File URL: http://files

Playing Audio From Parse.com

落花浮王杯 提交于 2020-01-13 19:51:15
问题 I am trying to play an audio file i saved on parse. I am getting the url from the PFFile from the object i saved to parse. When i run the app the avplayer produces no audio. I tested to see if the avplayer was playing by the first code snippet below and it prints out "Playing" which means the player is playing but no audio. I also tried setting the volume for avplayer and that didn't help. Don't understand why it won't play if anyone would like to help me out. Audio File URL: http://files

Calculate Json Array Size In Kb or Mb in android?

人盡茶涼 提交于 2020-01-13 11:33:10
问题 I want to calculate json array Size in KB/Mb. I have a condition where I need to calculate json Array size before uploading. It should not be more than 128 KB. 回答1: Convert your jsonArray to String and use string.getBytes().length . It will give number of bytes used by the string to store the value. Using those bytes you can calculate the size in any unit. String.getBytes().length is the number of bytes needed to represent your string in the platform's default encoding. For example, if the