简体   繁体   English

在后台接收推送通知时应用程序崩溃

[英]Application Crash on Receiving Push Notification while in Background

E/AndroidRuntime(31154): java.lang.NoClassDefFoundError: android.support.v4.app.NotificationCompat$Builder
E/AndroidRuntime(31154):    at com.distriqt.extension.pushnotifications.notifications.Notifications.createNotification(Notifications.java:210)
E/AndroidRuntime(31154):    at com.distriqt.extension.pushnotifications.notifications.NotificationTask.onPostExecute(NotificationTask.java:58)
E/AndroidRuntime(31154):    at com.distriqt.extension.pushnotifications.notifications.NotificationTask.onPostExecute(NotificationTask.java:1)
E/AndroidRuntime(31154):    at android.os.AsyncTask.finish(AsyncTask.java:632)

If i send a Push Notification using the sample PHP code provided my app crashes while it is in the background. 如果我使用示例PHP代码发送推送通知,则我的应用程序在后台崩溃。 The Error above is spitted out. 上面的错误随处可见。 If the App is in the foreground everything works fine. 如果应用程序位于前台,则一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM