registerAsync causing app crash
Home - registerAsync causing app crash
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:
but I didn’t understand the resolve clearly.
Thank you 🙂
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.