Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Kinvey iOS error DeviceToken request failed


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Sep 13, 2015 8:14 PM Last Post By: robbin flick
robbin flick

Posts: 2
Registered: 6/2/14
Kinvey iOS error DeviceToken request failed  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 11, 2015 11:57 PM
I am develop Android and iOS application with Delphi XE8 using kinvey push notification
everything is fine with Android but not with iOS.
I got error while registering device on push server. I am able to register new user on kinvey but got this error when i try to register the device for push notification

Error
DeviceToken request failed : {NSLocalizedDescription = "no valid 'aps-environment' entitlement string found for application";}.

the error raised in iOS while doing the code below :

var
loggedinUser:TBackendEntityValue;
LoggedinUserJSONdata:TJSONArray;
begin

PushEvents1.AutoActivate:=true;
PushEvents1.Active:=true;
BackendUsers1.Users.LoginUser(username,password,loggedinUser,LoggedinUserJSONdata);

if loggedinUser.ObjectID <> '' then
begin
KinveyProvider1.UserName:=username;
KinveyProvider1.Password:=password;
PushEvents1.RegisterDevice;
showmessage(loggedinUser.UserName +' '+loggedinUser.ObjectID);
showmessage('Device registered on push server');
Result := 1;
end
else
begin
showmessage('Unable to register on push server');
Result := 0;
end;

Uwe Raabe

Posts: 180
Registered: 10/20/00
Re: Kinvey iOS error DeviceToken request failed  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 13, 2015 1:24 AM   in response to: robbin flick in response to: robbin flick
robbin flick wrote:

Error
+*DeviceToken request failed : {NSLocalizedDescription = "no valid
'aps-environment' entitlement string found for application";}.*+

You need a special certificate and provisioning profile that has APNs
enabled to work with push notifications in iOS.

--
Uwe Raabe
Embarcadero MVP

robbin flick

Posts: 2
Registered: 6/2/14
Re: Kinvey iOS error DeviceToken request failed  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 13, 2015 8:14 PM   in response to: Uwe Raabe in response to: Uwe Raabe
Uwe Raabe wrote:
robbin flick wrote:

Error
+*DeviceToken request failed : {NSLocalizedDescription = "no valid
'aps-environment' entitlement string found for application";}.*+

You need a special certificate and provisioning profile that has APNs
enabled to work with push notifications in iOS.

--
Uwe Raabe
Embarcadero MVP

I have certificate details below
Name:com.****.*******
Type:APNs Production iOS
Expires:Sep 10, 2016

and in app ID, push service is enabled
Service Development Distribution
Push Notifications Configurable Enabled

installed in keychain and exported .p12 then uploaded in kinvey.

which step i missing?

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02