I have used Pusher Beams in my app, it has worked great till 2 days ago. It has stopped with this error:
Could not set user id, jwt rejected: Forbidden: Invalid JWT issuer
Any idea how to solve this? and is it related to server side or is in the android?
fun setPusherBeam(userId: String){
PushNotifications.start(context, BuildConfig.INSTANCE_ID)
val tokenProvider = BeamsTokenProvider(
BuildConfig.PUSHER_BEAM,
object : AuthDataGetter {
override fun getAuthData(): AuthData {
return AuthData(
headers = hashMapOf(
"Authorization" to auth_token_key)
),
queryParams = hashMapOf()
)
}
}
)
PushNotifications.setUserId(
userId,
tokenProvider,
object : BeamsCallback<Void, PusherCallbackError> {
override fun onFailure(error: PusherCallbackError) {
Timber.d("Beams login failed: ${error.message}")
}
override fun onSuccess(vararg values: Void) {
Timber.d("Beams login success ")
}
}
)
} catch (ex: Exception) {
Timber.d("Beams ex ${ex.localizedMessage}")
}
}
}