[英]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.
如果应用程序位于前台,则一切正常。
That error indicates you haven't included the Android Support ANE: 该错误表明您尚未包含Android支持ANE:
https://github.com/distriqt/ANE-AndroidSupport/raw/master/lib/com.distriqt.AndroidSupport.ane https://github.com/distriqt/ANE-AndroidSupport/raw/master/lib/com.distriqt.AndroidSupport.ane
Check the getting started guide for more: 查看入门指南以了解更多信息:
http://airnativeextensions.com/extension/com.distriqt.PushNotifications#get-started http://airnativeextensions.com/extension/com.distriqt.PushNotifications#get-started
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.