I can’t register MyMessagingService extending SendBirdPushHandler.
import kr.co.batontouch.workout.PushUtils
PushUtils.registerPushHandler(MyMessagingService())
Illegal class access error:
java.lang.IllegalAccessError: Illegal class access: 'kr.co.batontouch.workout.PushUtils' attempting to access 'com.sendbird.android.AbstractPushHandler' (declaration of 'kr.co.batontouch.workout.PushUtils' appears in /data/app/kr.co.batontouch.workout.inhouse-Ds_nRUJZO0FYGD8iJqAoeg==/base.apk!classes2.dex)
I thought this error occurs for multidex files. so I added multidex-config.txt and tested. But failed.
kr/co/batontouch/workout/PushUtils.class
This works well if I create PushUtils in com.sendbird.android package.
import com.sendbird.android.PushUtil
PushUtils.registerPushHandler(MyMessagingService())
I think this error occurs because AbstractPushHandler is package private class.