Android SDK Integration Issues

I am having an Issue with Countly Android Integration with my Application. I have followed all the steps,
adding the dependency, Maven, services/receiver in AndroidManifest and as well as Code in the onCreate Method.

I created a separate Android Application following the above steps , which worked fine as I can see the interaction with sever on the dashboard, whereas I am having trouble integrating it to an existing Android Application. Please Help!

Thanks

0

Comments

3 comments
  • OK I guess I have the same issue as the other post with the same topic had. Here's what the bug was:

    09-17 11:44:58.443 399-630/ com.awok.store W/Countly: Got exception while trying to submit event data: app_key=ba98e5f3b1269904256be8482c66c23fa6cb16f6&timestamp=1505634297885&hour=11&dow=0&tz=240&sdk_version=17.05&sdk_name=java-native-android&begin_session=1&metrics=%7B%22_device%22%3A%22FRD-L09%22%2C%22_os%22%3A%22Android%22%2C%22_os_version%22%3A%226.0%22%2C%22_resolution%22%3A%221080x1812%22%2C%22_density%22%3A%22XXHDPI%22%2C%22_locale%22%3A%22en_US%22%2C%22_app_version%22%3A%221.0.4110%22%7D&device_id=a0066110c4b3c8a9
    javax.net.ssl.SSLPeerUnverifiedException: Hostname try.count.ly not verified:
    certificate: sha1/1cU44CkSkUK6lFT58J9leQKAPxA=
    DN: CN=.count.ly,OU=PositiveSSL Wildcard,OU=Domain Control Validated
    subjectAltNames: [
    .count.ly, count.ly]
    at com.android.okhttp.internal.http.SocketConnector.connectTls(SocketConnector.java:120)
    at com.android.okhttp.Connection.connect(Connection.java:143)
    at com.android.okhttp.Connection.connectAndSetOwner(Connection.java:185)
    at com.android.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:128)
    at com.android.okhttp.internal.http.HttpEngine.nextConnection(HttpEngine.java:341)
    at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:330)
    at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:248)
    at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:433)
    at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:114)
    at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.connect(DelegatingHttpsURLConnection.java:89)
    at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:25)
    at ly.count.android.sdk.ConnectionProcessor.run(ConnectionProcessor.java:209)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
    at java.util.concurrent.FutureTask.run(FutureTask.java:237)
    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:833)

    0
    Comment actions Permalink
  • Hi Faisal,

    Googling your problem suggested this answer: https://stackoverflow.com/a/32402190
    Is it possible you have some HostnameVerifier set up in that app? Or may be some dependency does that?

    0
    Comment actions Permalink
  • Ok Thanks, I found the solution to the problem, It is basically what you have pointed out. I needed verify my domain with the HttpURL method. Thanks though.

    0
    Comment actions Permalink

Please sign in to leave a comment.