Start a new topic

Kinvey Ping Failed android 6.0

final Client mKinveyClient = new Client.Builder(this.getApplicationContext()).build();

mKinveyClient.ping(new KinveyPingCallback() {
public void onFailure(Throwable t) {
Log.e("TAG", "Kinvey Ping Failed", t);
}

public void onSuccess(Boolean b) {
Log.d("TAG", "Kinvey Ping Success");
}
}); this code runs android 4.2.2 and 4.1.0 but exists error for android 6.0; Kinvey Ping Failed
                                                                    com.kinvey.java.KinveyException: 
                                                                    REASON: The request failed.
                                                                    FIX: 
                                                                    EXPLANATION: com.kinvey.java.core.KinveyJsonResponseException: unknown


????????????????????????

PING FAİLED FAILED FAILED PLEASE CHECK IT on 64 bit 6.0 device  i am using only your tutorial codes.

 help me i cant find any solution.

Faced with this problem only am?  I am trying just ping function, isnt including other codes. im making an effort 10 days

Hi,


Which Kinvey Android SDK version are you using? The latest is v2.10.8, available for download at - http://devcenter.kinvey.com/android/downloads.


Also, have you tried this for Android Lollipop - v5.0 or v5.1?


I will try to reproduce this issue and get back to you.



Regards,

Wani

Kinvey support

Hi,


I was able to execute Kinvey ping method for following configuration:

  • Android Studio 1.5.1
  • Android project targeted at API 23
  • Emulator for Android 6.0 x86, API 23 with Google APIs
  • Kinvey Android SDK 2.10.8

Can you check for a couple of gotchas:
  1. Have you added internet permissions in AndroidManifest file?
  2. Have you put app key and app secret in kinvey.properties file in app>src>main folder?

I followed the Getting started guide for with Kinvey Android SDK, which is covered here: http://devcenter.kinvey.com/android/guides/getting-started

Regards,
Wani
Actually i am using at emolator and i created apk file so also using at real devices only 6.0 (real device) gives error i checked manifest file src folder evertyhink is normal but i cant understand why it gives error
I tested at this devices ; 6.0 emolator no problem 4.2 emolator no problem 4.1.2 real device no problem 5.0 real device gives error 6.0 real device gives error My android sdk is 2.10,8

EXPLANATION: com.kinvey.java.core.KinveyJsonResponseException: unknown

at com.kinvey.java.core.AbstractKinveyClientRequest.execute(AbstractKinveyClientRequest.java:420)

 at com.kinvey.java.AbstractClient.pingBlocking(AbstractClient.java:196)

at com.kinvey.android.Client$Ping.executeAsync(Client.java:492)

at com.kinvey.android.Client$Ping.executeAsync(Client.java:485)

at com.kinvey.android.AsyncClientRequest.doInBackground(AsyncClientRequest.java:71)

at android.os.AsyncTask$2.call(AsyncTask.java:295)

at java.util.concurrent.FutureTask.run(FutureTask.java:237)

 at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)

at java.lang.Thread.run(Thread.java:818)


Hi,


Let me try this out on real devices for 5.0 and 6.0 and get back to you.


Thanks,

Wani

-------------- RESPONSE --------------

                                                                            400 Bad request

                                                                            Cache-Control: no-cache

                                                                            Connection: close

                                                                            Content-Type: text/html

                                                                            X-Android-Received-Millis: 1461575119906

                                                                            X-Android-Response-Source: NETWORK 400

                                                                            X-Android-Selected-Protocol: http/1.0

                                                                            X-Android-Sent-Millis: 1461575118889

ClassLoader referenced unknown path: /lib/arm64 does support kinvey 64 bit because note 3 64bit gives error note 4 32 bit is running

i really need to find a solution.

Hi,


I have tested it on Moto E (5.1.1), still unable to reproduce the issue.



Regards,

Wani

Login or Signup to post a comment