Using OnsenUI, Monaca backend API, you create an app that adds items to the backend collection when you press the button after logging in.
After logging in, I tried to get the OID of the user using
monaca.cloud.User._oid, but it contains
NULL.Will the login state not be maintained in the app after logging in?
The login process is asynchronous, so if you try to retrieve it below .then(), you should be able to retrieve it.Present your own sample code.If you don't mind, please move it.It was created by editing a minimum template.
© 2023 OneMinuteCode. All rights reserved.