OneSignal:onNotificationProcessing在一段时间后不会被调用

我已经成功实施了OneSignal设备到设备推送通知,但几个小时后,它就停止了所有3个设备的工作。 在logcat中显示以下输出,而不是onNotificationProcessing调用:

11-29 15:51:35.348 16383-16383/? E/FirebaseInstanceId: Failed to resolve target intent service, skipping classname enforcement 11-29 15:51:35.348 3672-5620/? W/ActivityManager: Unable to start service Intent { act=com.google.firebase.MESSAGING_EVENT pkg=com.APP.ID (has extras) } U=0: not found 11-29 15:51:35.353 16383-16383/? E/FirebaseInstanceId: Error while delivering the message: ServiceIntent not found. 

在应用程序类onCreate

  OneSignal.startInit(ctx).init() OneSignal.idsAvailable { osId, gcmId -> saveToFirebase(osId) } 

在清单中

  <service android:name=".BackEnd.PushProcessor" android:exported="false"> <intent-filter> <action android:name="com.onesignal.NotificationExtender" /> </intent-filter> </service> 

我正在使用OneSignal Android Native SDK v3并在Kotlin lang中编写代码,ProGuard启用了禁用模糊处理

确保您的应用中没有2个不同的Google项目编号。 如果出现这种情况,旧的项目编号的Google Registration Id(AKA pushToken)将会在短时间内失效。