Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

A Parse.com Module for Corona SDK
Started by Develephant Dec 08 2013 07:24 PM

* * * * * 1 votes
85 replies to this topic
[TOPIC CONTROLS]
« Page 4 of 4 2 3 4
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#76

nmichaud

[GLOBAL: userInfoPane.html]
nmichaud
  • Contributor

  • 492 posts
  • Corona SDK

Hi develephant,

 

You work is amazing. We are using your mod_Parse and we would like to send you money for this as we know dong work like this require many, many hours of hard work. What is the process please ?

 

Nick



[TOPIC: post.html]
#77

Develephant

[GLOBAL: userInfoPane.html]
Develephant
  • Corona Geek

  • 1,457 posts
  • Corona SDK

Hi,

 

Thank you for the kind comments.  mod_parse has been around for a year and a half now, so yes, many hours. :)  I'm thrilled it's working for your needs.

 

Your offer of a donation towards the work is very gracious of you.  Feel free to use the coronium.io PayPal page. If you'd prefer another method, go ahead and PM me.

 

Thank you so much, and look out for the mod_parse 2 beta. ;)

 

Cheers.



[TOPIC: post.html]
#78

hammod-930

[GLOBAL: userInfoPane.html]
hammod-930
  • Contributor

  • 203 posts
  • Corona SDK

Hi Develephant, 

thank you for this amazing hard work, you moved from a lower place as developer to an upper one, thank so much for this.

I still have one problem if you don't mind. I cannot check if session has expired or not, because obviously the function doesn't work, and I get error that says :

File: mod_parse.lua
Line: 568
User must be logged in first, sessionToken cannot be nil.
 
my code is :

local parse = require("mod_parse")
parse:init({
appId = "....",
apiKey = "...."
})
 
parse.showStatus = true
 
--count event
--parse:appOpened()
--parse:logEvent( "Share", { ["screen"] = "splash" } )
--parse:logEvent( "Share", { ["screen"] = "results" } )
 
local function onCreateUser( event )
  print( event.response.createdAt )
  print( event.response.sessionToken )
end
 
local userData = { ["username"] = "Ali", ["password"] = "121212" }
-- parse:createUser( userData, onCreateUser )
 
local function onLoginUser( event )
  if not event.error then
    print( event.response.objectId )
 
    --check if user is verified
    if event.response.emailVerified then
      --user is verified
    end
  end
end
 
parse:loginUser( { ["username"] = "Ali", ["password"] = "121212" }, onLoginUser )
 
local function onGetMe( event )
  if event.code == parse.EXPIRED then
    print( "Session expired.  Log in.")
  else
    print( "Hello", event.response.username )
  end
end
 
parse:getMe( onGetMe )
 

 

I want to know how to fix this and continue learning about your great _mod.

 

thanks.



[TOPIC: post.html]
#79

Nathan B

[GLOBAL: userInfoPane.html]
Nathan B
  • Contributor

  • 173 posts
  • Corona SDK

Thanks for the labor, develephant! Everything is working smoothly thus far.

 

This is a question for anyone:

I have an array-type column on Parse.com. Say, for example, I just want to update the second index in that array. If it's even possible, how do I do that using mod_parse?

 

Thanks,

Nathan



[TOPIC: post.html]
#80

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,822 posts
  • Enterprise

Hi,

Thank you for the kind comments. mod_parse has been around for a year and a half now, so yes, many hours. :) I'm thrilled it's working for your needs.

Your offer of a donation towards the work is very gracious of you. Feel free to use the coronium.io PayPal page. If you'd prefer another method, go ahead and PM me.

Thank you so much, and look out for the mod_parse 2 beta. ;)

Cheers.


I love the parse mod thank for making it. 😀

[TOPIC: post.html]
#81

nmichaud

[GLOBAL: userInfoPane.html]
nmichaud
  • Contributor

  • 492 posts
  • Corona SDK

Hey develephant,

 

What should we expect for mod_parse 2 and do you have a time frame for your beta ?

 

thank you

Nick



[TOPIC: post.html]
#82

undecode

[GLOBAL: userInfoPane.html]
undecode
  • Contributor

  • 198 posts
  • Corona SDK

Hi, first of all: awsome job Develephant. I remember when you posted this for the first time, but I wasn't into networking features so I just skipped but knowing there was a feature available if I wanted to try it.

 

Since a couple of weeks ago I've been trying to set up a decent networking structure and managed to have a working LAMP local server (had 0 experience in unix systems). While it was really fun to do, there is a lot of thing to configure, performance to be done, and $$$ to be spend (server/hosting, SSL, etc)

 

I then remembered about Parse and this module and gave it a try. Had a hard time during the first time, but I blame my inexperience with networking resources (and usually get the idea of how to use a new library). Anyway, after that I understanded a lot more and managed to make a make a good structure.

 

Now i'm getting into a problem here. Users are being logged in automatically after the first login, this works... but in my parse console there is a session being created everytime i log in the user with this code:

-- i get these from other part
user = MYUSER
pass = MYPASS

local function onLoginUser(event)
   if not event.error then
      print("connected")
   else
      print("Login error")
   end
end

parse:loginUser( { ["username"] = user , ["password"] = pass }, onLoginUser )

Now the question is... since the sessions expire after 1 year of being created, is it OK to generate one everytime an user logins? Where and how whould you use them if not? 

 

Thanks in advance, and thanks again for the awsome mod



[TOPIC: post.html]
#83

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,822 posts
  • Enterprise

I know your busy with coronium, how is android push coming?

 

I found this article, It might help with android push

http://www.tech.pink/using-corona-with-parse-for-push-notifications/ 



[TOPIC: post.html]
#84

ubj3d.android

[GLOBAL: userInfoPane.html]
ubj3d.android
  • Contributor

  • 741 posts
  • Corona SDK

The "login" method will not work on Windows Phone.

 

With help from Corona member Joshua, found the solution.

 

You should remove the body and the headers["Content-Type"] = "application/json"



[TOPIC: post.html]
#85

Divergent Monkey

[GLOBAL: userInfoPane.html]
Divergent Monkey
  • Contributor

  • 350 posts
  • Corona SDK

@undecode:

 

I have a similar problem (https://forums.coronalabs.com/topic/59820-parsecom-plugin-v2/?p=316963), how did you solve it?



[TOPIC: post.html]
#86

undecode

[GLOBAL: userInfoPane.html]
undecode
  • Contributor

  • 198 posts
  • Corona SDK

Hi, pretty sure you already read the responde in that thread, but in my case I ended up not using any online service because it'd exceed the "payable" ammount I was aiming for.

 

In my current project this is a really good option so I'm probably going to use it and attack the session thing again.




[topic_controls]
« Page 4 of 4 2 3 4
 
[/topic_controls]