[Support only] Parse - Cloud data, Push, Analytics and Code

Post your completed addons to share with the community

Post » Thu Jan 08, 2015 2:31 am

In this article, the steps of logining with 3rd party authentication are -
1. Does 3rd part authenticate. Get an identify unique string like access token after login success.
2. Maps this identify unique string into username and password by looking up table stored in parse server
3. Uses username and password to login parse.

So the concept is: getting an unique username for built-in parse logining.
But the question is - how to run step1 to do 3rd party authentication?


My solution is using firebase's authentication first, then login parse.
1. firebase supports authentication by facebook, google, twitter, github. After login with one of these authentication, firebase will have an "UserID" which is an unique string for each user. (plugin of authentication in firebase)
2. Pass username to "UserID", password to access token (or mapping "UserID" or access token to another username-password pair) to login parse.
(Now user had login firebase and parse)

I had tested these steps already.
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Sat Jan 10, 2015 7:26 am

Sorting data with multiple keys


Hi,

I am trying to sort data by two keys like
Code: Select all
query.descending("score");
query.ascending("updatedAt");

But the result only will become sorting by key "updatedAt".

A possible solution is wrote in this way
Code: Select all
query.ascending("-score,updatedAt");

Which only use one sorting instruction ("ascending" here), and add "-" at the key ("-score" here) which is sorted by opposite order.
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Wed Feb 04, 2015 7:53 pm

Major update to include Parse Push Notifications.

The new version support Parse Push Notifications for iOS and Android devices via Cordova export.

Send push notifications very easily from the Parse Push Dashboard or make more complex pushes with Cloud code.
B
18
S
7
Posts: 88
Reputation: 1,424

Post » Thu Feb 05, 2015 5:23 pm

Hello again, attached is the error window I received when starting C2.

I've dragged both the "parse1020.c2addon" and "main.js" files into the C2 window.

What am I missing?
You do not have the required permissions to view the files attached to this post.
B
17
S
2
Posts: 88
Reputation: 1,503

Post » Thu Feb 05, 2015 7:42 pm

@hmott I can see from the file structure that you have extracted the zip file directly into the plugins folder. You should instead extract the zip file in temporary location and then drag and drop the "parse1020.c2addon" file to an open Construct2 window.

So to resolve the current problem you need first need to remove the folder "...\plugins\ParseFE1020\" before doing the drag and drop again.

We are using the "new" method described in the manual to install plugins: https://www.scirra.com/manual/158/third-party-addons

I will add a reference to the manual to make it clearer how to install external plugins.
B
18
S
7
Posts: 88
Reputation: 1,424

Post » Thu Feb 05, 2015 8:31 pm

Oh I see, thanks.
B
17
S
2
Posts: 88
Reputation: 1,503

Post » Sun Feb 08, 2015 1:00 pm

A "destroy" action is a request, is it correct?
So it is very easy to run out of free level if I made a manager application which destroy messages saved at yesterday. Or I need to separate destroy tasks into many seconds.

Edit:
Destroy items - Parse.Object.destroyAll, it works.
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Tue Feb 10, 2015 5:30 pm

It's a great plugin.
I tested the push notification with export xdk crosswalk (and your notification plugin), it's instantaneous.

However, I don't really understand how works the Parse analytics events...

The action ParseFE -> Analytic event gets a name with key and values..
In Parse board analytics (after the test in apk), I searched these keys and values but i don't see them...

@Arne Can you explain to me how is working this event and how use simple tracking with Parse ?
B
18
S
4
Posts: 84
Reputation: 2,085

Post » Wed Feb 11, 2015 11:19 am

Hi!

It seems that the push notification in json format are not received by Android...

Json: { "aps": { "alert": "A test notification from Parse!" } }
or
{ "channels": "FrostyNews",
"aps": {
"alert": "A test notification from Parse!",
"uri": "http://www.scirra.com"
} }

Test with your demo HelloParse.capx , export cordova -> xdk crosswalk android
B
18
S
4
Posts: 84
Reputation: 2,085

Post » Wed Feb 11, 2015 6:16 pm

@amkp
I did a Crosswalk export and sent the following data as JSON from the Parse Dashboard.
Code: Select all
{"name":"Arne","location":"Sweden"}

When it arrived on my Android device it looked like this:
Code: Select all
{"location":"Sweden","name":"Arne","push_hash":"d41d8cd98f00b204e9800998ecf8427e"}


The JSON you are showing looks like it came from an iOS device. The "aps" part are only sent to iOS devices.

How do you send your JSON string?
B
18
S
7
Posts: 88
Reputation: 1,424

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 0 guests