Ask Parse Anything – May Edition

Just another WordPress site

Ask Parse Anything – May Edition

welcome to our very first ask parts anything today we have three developer advocates here on deck answering some of your questions and be sure to tune in to the very end for a very special par surprise I’m here today with Eric nakagawa one of our developer advocates here at parse when will it be possible to upload a CSV to an existing class and parts that’s a good question Nancy currently you can upload a CSV into parse for new objects if you want to update objects we suggest you use JSON there’s a couple ways to do this the first way is you could upload the CSV as a new class export that out and then Rio import that back into parse or you could use a a community module from NPM or you know a node node model module that allows you to convert a CSV into JSON and then upload that when will we be able to see the data in our par storage such as images and other things like that so interesting story about the data in your in your storage is that we considered building a impt like a file viewer a couple years ago but we never built it for folks that really want this feature set you can use Express to expose the different objects within your within your application just be sure to implement the proper security so that this information just can’t be exposed to anybody how can we make HTML emails for user authentication and password reset that’s actual that’s a tough question well we already built we already have built in some text based email reset features if you want to build your own to make it look differently a couple ways to do this would be to use xpress j/s some custom clog code you would write functions to verify that the person owns a mattress and set the user object you know appropriately you also need to set or create functions to generate these like a token or something that is uniquely identifiable that is sent to these users yeah that’s that’s how you do that king videos be stored on parts yes videos can be stored on parse the interesting thing about our parse storage product is you can store files up to 10 megabytes so it could be audio file you know videos documents anything that’s up to that low that amount of storage is okay videos are one thing that you could you could host out of Parsifal yes I’d like to implement a way for users not to be able to reuse the same passwords using parts how should i go about doing this so that’s a good that’s a really good question built in to parse is a secure method for resetting and managing your your users and do their user passwords we don’t recommend that you change this but if you want to you could do this by creating your own functions to or algorithm to hash passwords and store them and then create your own functions again to verify whether or not these these passwords have been used in the past it would take a significant amount of work but it is possible of course we have a new feature request trigger and email in a row is created in a given table so you can already do this in cloud code by using a before save or an after save and working with one of our partners like SendGrid MailChimp or one of the other email providers you can determine when and who you want to send emails to it’s already there is it possible to schedule a background job to run once a month for example the first day of the month so yes you can using your parse cloud code jobs you’re able to run any job at a certain period of time what I would do is I would check that the particular day of the month the current month is the day that you would expect you would want to run this function and if it matches run it if you start a job at the beginning of the month on the first you check you check every day until that month or day of the month matches the first again and when that does you fire off that job if you want to switch to whenever that job or whenever that time period was created and check that day you can do that as well how does parse convert the time inserted into a column of data type time so in parse we don’t actually convert the time we keep everything in UTC so if you are in a different time zone you have to be able to adjust the data to match your particular user do you have any plans to add servers and Asia we don’t have any servers in Asia at this stage we also don’t have any immediate plans to add to add servers but considering the amount of growth that we have in Asia and the apac region we are still developing some plans to

you know decide it you know how we’re going to move forward with the features in that area we want to be available everywhere that our developers are building their apps and where their their users are so in the meantime we are working to speed up and lower the latency for users and apps app users in Asia yeah i’m here with fosco mirada one of our developer advocates here at parts i answering your questions for a sparse anything it’s phone number verification a plan feature if so can you publish a timeline well I’m a phone number verification is a great feature we do email verification we provide that as a service I don’t think that we’re going to get into doing phone number verification as a first-party feature but it’s certainly possible to use twilio to build this type of verification yourself I suggest taking a look at the example app we just released which is called any phone which is a nice iOS Swift and a web app that allows people to log in with their phone number get a verification code and it will create or reuse existing user accounts what is the parse team think about the Apple watch and what does the Apple watch mean for parse push notifications well several of us on parts have Apple watches I have one and everybody seems to love them one great thing about the Apple watch is that you don’t need to do anything special to get your push notifications to show up they just work if users enable it to go to their watch there it is so if you’re already using parse push your your Apple watch owning users can already enjoy your notifications on their wrist if you want to get into Apple watch development we recently expanded our SDK to make it very easy to share data between your watch extension and your regular parse app so we have a blog you should check that out and will include a link with the video are you able to link a push notification currently when a user receives our notification and taps on it they’re taken to our apps menu page is there a way to direct them to a specific place within our app yeah what you really need to do there is you need to include some extra piece of information as part of the push payload so you can do that through our console or if you’re sending it through the API you send this JSON payload that has the alert or if it’s a silent push that’s a little different but you send some piece of information and then in your app the code that actually triggers when a notification is activated you can inspect that piece of information and then navigate around your app however wherever you need to go when will push notifications be added to the same rijn and parse SDK well actually yeah that’s that’s been an incredible question that’s that’s been asked hundreds of times over the years and we’re happy to be able to say that we launched it last week so now you can use parse in parse push for your xamarin iOS your xamarin android and also a unity iOS and Android and Windows Phone and more to come so check it out is it possible to send push messages by using a Geo query for selecting which devices are inside a specific geofence so this could be using radius or polygon um yeah that’s good we we do support the radius version I don’t think we actually support polygons unless it’s a box so what you do there is as long as you’ve stored and it’s a location like a Geo point on their installation object then when you’re sending a push you can construct a query using some of our constraints like within miles or within kilometers and I think another one is like within sphere where you can provide that and then send push to users matching that record how do I son a push notification to users of a specific device model for example only to iphone 6 users okay that’s very similar to the previous question as long as you store that information on the installation record so we don’t actually retrieve and store the the device type like which phone it is whether it’s an iphone 6 or 6 plus but if you use some standard pre-existing Apple methods to get that information or ask the user however you need to get that as long as you store that as part of the user’s installation record then again you can write a query and say push to these users matching these constraints how can I add a URL for additional info into a push notification with a default alert message okay it’s also very similar but

i think i think this question is coming because in our web console where you send a push notification and you type an alert message we don’t give you the ability to add any extra fields so again in this case you need to toggle that from an alert message to a json object and you need to send the whole push object so you know there’s information online about how to construct the actual apns payload or android payload but you include your alert and then you can include other fields and then again in your in your application the code that accepts that push notification you can then inspect it and do whatever you need to do with with the data that was submitted when will parse start caring about Swift for example to bring it on par with the objective-c we we love Swift we care about Swift very much we have a great engineer that’s that’s working on this almost constantly if you remember when they announced Swift on a Tuesday we were one of the first companies to support it and we had Swift documentation on Friday as Swift the language has evolved we’ve continually gone to update our stuff we release the any phone sample app which was all in ice modern Swift and we’re doing our best with the documentation we just open source x and so community members are starting to help us fill in what we’re missing and we care very much about Swift and we will get there how often do you push out new iOS SDK releases so it’s a we’re roughly once a month I think we’re kind of shooting for like once a month will release a new SDK version will work on a few things and we test things and then we roll out a new version that can change if there’s like some critical bug or something that we want to push out early but pretty much once a month you’re watching Hector Ramos one of our developer advocates here at parts answer your questions for this one’s asked parse anything what’s working at parts like I imagined it to be something like having a constant coding party in a sea of Awesomeness oh it’s more like swimming in an ocean of awesomesauce it’s like a cat working at that box factory now what’s elucidates it’s great to work with such a great team of awesome engineers and to be helping out all our users every day building great apps so yeah it’s great to work at parse what is Hector’s favorite color oh that’s easy it’s uh Esther you Lou could you say a little bit more about that specific shade of blue look it up it’s a great color looks very nice what is your biggest app well I’m my biggest up or personally well so we don’t share specific customers information so we cannot say what our biggest app running on parses but you know you can look at the customer stories on our blog to get a better idea of what kind of apps which run on our platform why don’t you back up and restore our data it seems like that’s your core business so yeah actually we do backup our data continuously and we are able to perform at restore of any data that could be lost due to any incident on our end what we don’t currently do it some restored data on an individual app when the data was deleted intentionally or by accident by the developer or its users what we recommend you do here is try to avoid deleting your data we we have provided many roadblocks to keep you from doing that by accident on the data browser and also keep various exports of your data available so that you can restore the data yourself we’re thinking of ways we can probably do this for you automatically but it’s not a simple problem to solve for example do you want to restore from a snapshot and forgo any data that was saved after that snapshot or do you want to go in and pick and choose what is restored so if you have any feedback on this just go to our forums and just let us know como criar uma Harris own and traders classes xcb rhodora sauce las dos clases new McQueary em JavaScript or how do i create a relationship between two classes and display the values of the two classes in a query in javascript ultima pregunta i recommend 0 visit are assessed on day harrison’s Debbie Oddo JavaScript Katie magoons algun say hey

exempt los de como vas a poder configure our Harris una Mentos entry classes usando pont arrows harrison’s we are using parts for our App zipper but want to make the data accessible on our website to users who login we’ve searched and haven’t been able to find a step-by-step example for this can you explain it in some simple steps sure so when you store data on pars there’s many different ways you can access this data it can be through any of the client side that’s the case or the rest api so if you’re working on a website you have various options here it depends on what you’re using for your website let’s say for example you’re hosting your website on trails you might use the rest api or one of the available gems that are out there to basically read that data from pars using the REST API another option is to host it on pars using Express you can read more about Express and how it works with parts hosting on our website and basically you would still need to you know build out your own website and use our SDKs to get that data out what are the differences between users and installations and how can i how can we have more users and installations yeah so users and installations are two different types of classes that are automatically created on parse and users are quite simple to explain they’re basically users of your app that have signed up for a for a user account this could be anything with user and username and email or maybe they use Facebook or Twitter to log in and then you have installations installations are used to target and send push notifications to your devices and while while they usually go hand in hand there’s no need for users and installations to basically have a one-to-one relation for example you depending on the way you code that your app you may have you may force everybody to sign up for a user account but maybe you don’t ask all of them to opt in to push notifications so in that case you would have more users than installations so yeah it depends on your implantation one of the main issues of using parts as the limitations of the queries with 10,000 rows are there any plans to offer a solution to this issue yeah so I believe that the issue they are referring to is that by default when you query a class from parse you get up to 100 objects you can use the limit parameter to get up to adults and objects with one query now obviously it’s totally normal to have classes with more than a thousand objects so you would then use the Skip parameter the basically page through your results at thousand objects at a time now you can use this skip parameter up to a value of 10,000 after that if you try to use a higher skip parameter to page past ten thousand objects you’ll get an error so we have we’ve actually answered this question before on our forums and it’s quite simple if you need to page through more than theta ten thousand objects first ask yourself why are you doing this from the client do you really need to go through through that many objects now a good a common use case for this would be if you’re performing some sort of data migration in that case I recommend that you use the JavaScript SDK which has the parts that query dot each method which allows you to go through every single object that matches your query regardless of how many objects there are in that class now if you are not able to use JavaScript SDK and you want to use the rest api look for my answer in the forums where I basically go through it the gist of it is you want to sort your queries based on creation date based on created at and once you get to the ten thousands object you just grab the created at date of that last object and you use it as a constraint to basically start again from zero and get the next set of ten thousand objects you’ll see all the steps in the forums well my app cache of my request count is exceeded well it should not so apps by default

can make up to settings requests per second that’s the free plan and you can bump this up up to 600 requests per second and when you this is actually applied over a 60-second period so it’s actually you need to send why more than service requests to be able to hit this but once you do that extra request will return an error and this error is not different than any other better you might get if there’s a connectivity issue or maybe you use an incorrect parameter so it’s just a normal error and if your code is a written correctly and it’s able to handle errors correctly you should not crash you should just be able to handle that error and deal with it in a nice way how do I manage my evolving data model hmm that’s a good question I guess what they mean is that how do I manage my app when I’m adding more columns or changing the columns after the app is out there and being used by my customers and now what you do there is don’t remove columns once your app is out there because those clients expect that data to be there so you just add new columns and make sure that your updated versions of the app grid from those new columns instead and that you just work and if you want a tip to make it easy to basically handle old clients and new clients is used before safe in cloud code to keep the old column in sync with anyone and that should be just about it how do you query for more than a thousand objects um yeah so that’s easy as i said in the air good question by default you can only query up to 100 objects you can increase that to a thousand and in order to get more than a thousand you just have to increment the skip parameter to get the next set of four thousand when will there be an official amber ogia sparse data adapter yeah that’s a great question i don’t think we will have an official first fatty amber adapter anytime soon but what we’re doing here is we’re leaning on the community where we actually have value sparse amber adapters out there one that I recommend that you check out is made by my friends at blimp it’s a up on github just search for get blimp on github and the project is called Amber dash parts thanks for tuning in to our very first ask parse anything we’ve got lots more video content coming up for you so like and subscribe to our channel to get the latest and greatest from parts and for all of you who have watched to the very end go to parse calm / coupon / may APA for a very special thank you from our team and for all that you’ve been building enjoy