StoreDeviceToken and WebException: Error writing request: The authentication or decryption has failed

0 votes

Hi

 

  When I try to StoreDeviceToken, exception is allways thrown:

E/Unity   (32704): Unable to find /System/Library/Frameworks/Security.framework/Security
E/Unity   (32704): Unable to find /System/Library/Frameworks/Security.framework/Security
I/Unity   (32704): WebException: Error writing request: The authentication or decryption has failed.
I/Unity   (32704):   at System.Net.WebConnectionStream.WriteHeaders () [0x00000] in <filename unknown>:0
I/Unity   (32704):   at System.Net.WebConnectionStream.SetHeaders (System.Byte[] buffer) [0x00000] in <filename unknown>:0
I/Unity   (32704):   at System.Net.HttpWebRequest.SendRequestHeaders (Boolean propagate_error) [0x00000] in <filename unknown>:0
 
With this line:
oAPI = new ServiceAPI (sAPI_KEY, sSECRET_KEY)
 
... other inits
 
oAPI .BuildPushNotificationService().StoreDeviceToken (CurrentUser, sDeviceId, com.shephertz.app42.paas.sdk.csharp.pushNotification.DeviceType.ANDROID);
asked Mar 11, 2014 in App42 Cloud API-BaaS by jarias (16 points)

1 Answer

+1 vote
 
Best answer

Please use async methods in your app for more details please visit  App42 Unity PushNotification

 

answered Mar 11, 2014 by sshukla480 (407 points)
selected Mar 11, 2014 by jarias
Thanks, now is working!!
I'm using Unity and encountering an similar error... How do i use Async methods in Unity. The Documentation has no details on this...
WebException: Error writing request: The authentication or decryption has failed.
System.Net.WebConnectionStream.WriteHeaders ()
System.Net.WebConnectionStream.SetHeaders (System.Byte[] buffer)
(wrapper remoting-invoke-with-check) System.Net.WebConnectionStream:SetHeaders (byte[])
System.Net.HttpWebRequest.SendRequestHeaders (Boolean propagate_error)
In which method you are getting this error. Please read our detailed documentation of unity3d
http://api.shephertz.com/app42-dev/unity3d-backend-apis.php
thnx for late reply though. But i fixed it myself. Dont remember how....but its fixed. thank you
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
...