registerAsync causing app crash

Home - registerAsync causing app crash

Michael Aditya asked 2 years ago

Hi, I’m following these tutorials:

How to Build Starter Project Android Mobile Apps in Mesosfer Backend as a Service

How to Build Signup Android Mobile Apps in Mesosfer Backend as a Service


But when I’m trying to register user, my app crashed and the logcat indicate that there is a problem with registerAsync on RegisterUser Activity.
Here’s my code:
Class MesosferApp: http://pastebin.com/FSW4BMLz
Activity RegisterUser: http://pastebin.com/jc4BNdg8
logcat: http://pastebin.com/gaRyfz2H
 
What is most likely causing this problem and how to solve it?

Perhaps, it is similar to this question:

Error While Trying to Register


but I didn’t understand the resolve clearly.
 
Thank you 🙂

2 Answers
Michael Aditya answered 2 years ago

Okay, already solved it, after tracing the SDK classes.
My conclusion is you MUST set at least one custom field (must add newUser.setData(“whateverKey”,”whateverValue”); to my code) although I didn’t want to use any custom field.

Alann Maulana Staff answered 2 years ago

Hi Michael,
We’re sorry for the trouble. We already managing to solve this issue on our SDK so it can be released soon. Thanks.
Regards.

Michael Aditya replied 2 years ago

Hi Alann,
It’s okay. Hope your SDK will become better and better by accommodating community’s feedback!
Cheers.

Your Answer