pusher / push-notifications-android

Android SDK for Pusher Beams
https://www.pusher.com/beams
MIT License
21 stars 21 forks source link

Fatal Exception: java.lang.IllegalArgumentException Invalid URL host: ".pushnotifications.pusher.com" #144

Open kcw-grunt opened 2 months ago

kcw-grunt commented 2 months ago

Background

Followed Get Started and followed instructions precisely. This was implemented in Android 2 projects and a majority of the users are able to subscribe and our analytics show that they are successfully registering 1000s.

Yet we have this issue and these users are not showing in the Pusher Console. In the pusher console, there are only 70-80 devices. But in the similar iOS implementation there are 1000s.

There is a huge discrepenancy and this issue may have part of the problem. There is also a Support ticket open in Pusher Support ticket #201465

Trace Log

okhttp3.HttpUrl$Builder.parse$okhttp (HttpUrl.kt:1338)
okhttp3.HttpUrl$Companion.get (HttpUrl.kt:1634)
okhttp3.HttpUrl.get (Unknown Source:2)
retrofit2.Retrofit$Builder.baseUrl (Retrofit.java:458)
com.pusher.pushnotifications.api.PushNotificationsAPI.<init> (PushNotificationsAPI.kt:98)
com.pusher.pushnotifications.PushNotificationsInstance$serverSyncHandler$1.invoke (PushNotificationsInstance.kt:108)
com.pusher.pushnotifications.PushNotificationsInstance$serverSyncHandler$1.invoke (PushNotificationsInstance.kt:93)
com.pusher.pushnotifications.PushNotificationsInstance.<init> (PushNotificationsInstance.kt:105)
com.pusher.pushnotifications.PushNotifications.start (PushNotifications.java:30)
com.breadwallet.BreadApp.finishedLoadingPushService (BreadApp.java:163)
com.breadwallet.BreadApp.access$100 (BreadApp.java:48)
com.breadwallet.BreadApp$2.run (BreadApp.java:137)
java.lang.Thread.run (Thread.java:1012)