Start a new topic
Answered

iOs push "No active user at this moment"

HI!

I'm trying to send push notifications to my iPhone device. I have a panel with .p12 certificate of my production and I get right the device token but I get the next error message when iPhone try to connect with kinvey:


Error Domain=KinveyError Code=406 "No active user at this moment. Please create an user or login with an existing one." UserInfo=0x17d80720 {NSLocalizedFailureReason=No active user at this moment. Please create an user or login with an existing one., NSLocalizedDescription=No active user at this moment. Please create an user or login with an existing one.}


What could I do?


Thanks!


Best Answer

 Hi Alvaro,

Every app has an active user (which represents the person using the app). This user object must explicitly be created, either with a username and password, OAuth sign-on (such as Facebook, Google+, LinkedIn, etc.), or Mobile Identity Connect.

Please take a look at this for more information on this:
http://devcenter.kinvey.com/ios/guides/users#ActiveUser

(For testing purposes, you can create a new user from the Kinvey Console and than in the app login using KCSUser.loginWithUsername())

Thanks,
Pranav

Kinvey Support

1 Comment

Answer

 Hi Alvaro,

Every app has an active user (which represents the person using the app). This user object must explicitly be created, either with a username and password, OAuth sign-on (such as Facebook, Google+, LinkedIn, etc.), or Mobile Identity Connect.

Please take a look at this for more information on this:
http://devcenter.kinvey.com/ios/guides/users#ActiveUser

(For testing purposes, you can create a new user from the Kinvey Console and than in the app login using KCSUser.loginWithUsername())

Thanks,
Pranav

Kinvey Support

Login or Signup to post a comment