You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I'm working on Android Application.
Applicaiton is working fine with internet but i turn off internet my application gone crashed.
Here is the screenshot.
CC @pusher/mobile
The text was updated successfully, but these errors were encountered:
Are you implementing a ConnectionEventListener? The parameters for its methods have to be nullable with a '?' at the end, and variables accessed in a null safe manner. Such as the following:
val pusher = Pusher("xxxxxxxxxxxxx", options)
pusher.connect(object : ConnectionEventListener {
override fun onConnectionStateChange(change: ConnectionStateChange?) {
if (change != null) {
Log.i("Pusher", "State changed from ${change.previousState} to ${change.currentState}")
}
}
override fun onError(
message: String?,
code: String?,
e: Exception?
) {
Log.i("Pusher", "There was a problem connecting! code ($code), message ($message), exception($e)")
}
}, ConnectionState.ALL)
Hi I'm working on Android Application.
Applicaiton is working fine with internet but i turn off internet my application gone crashed.
Here is the screenshot.
CC @pusher/mobile
The text was updated successfully, but these errors were encountered: