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
P
Pranav J
said
almost 5 years ago
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
P
Pranav J
said
almost 5 years ago
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())
Alvaro Otero
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!
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
Pranav J
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
-
Why do I get "Undefined symbols" errors when building with KinveyKit?
-
How do I register push tokens?
-
When using social login, to perform a log-out, do I need to log out of the social network, Kinvey, o
-
How can I assign additional properties to users?
-
Does KinveyKit support 64-bit ARM devices, such as iPhone 5s?
-
Authorization Token Invalid or Expired
-
BOOL and how it is stored in the database.
-
Offline saving throwing errors
-
Custom endpoint not able to form request object
-
Security through business logic
See all 437 topics