Push Notification error -1012

0 votes

I tried to implement Push Notification

like described here http://api.shephertz.com/tutorial/Push-Notification-iOS/?index=pn-ios

 

But have an error The operation couldn’t be completed. (NSURLErrorDomain error -1012.)

on this part

  1.         PushNotification *pushNotification=[pushObj registerDeviceToken:deviceToken   
  2.                                                                withUser:@"User Name"];

Reason : The operation couldn’t be completed. (NSURLErrorDomain error -1012.)

What is wrong?

asked Aug 25, 2014 in App42 Cloud API-BaaS by ivon.carnival (10 points)
edited Aug 25, 2014 by ivon.carnival

1 Answer

0 votes

Hi,

(NSURLErrorDomain error -1012) stands for NSURLErrorUserCancelledAuthentication. It seems issue related to network where request was not able to complete from client side due to some reason. Please try one more time and see if it works. Also, please try our push sample and see if you are able to run it. The Push Sample can be downloaded from our github repo https://github.com/shephertz/App42-iOS-Push-Sample.

Let us know if problem continues.

answered Aug 26, 2014 by rajeev.etc (1,660 points)
Ok currently, I found mistake.
Probable used different code from different documentation.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...