脱机时,带有AppCenter的Xamarin.Forms App崩溃(android.content.ContextWrapper.getSystemService)

时间:2018-08-16 14:06:12

标签: android xamarin.forms crash receiver

我将exports.handler = function(context, event, callback) { const test = event.Test; // your function code here... }; 通知,崩溃和分析功能集成到了我的应用中 https://docs.microsoft.com/en-us/appcenter/sdk/push/xamarin-forms ...

在AndroidManifest中注册的接收者:

AppCenters

一切正常...推送通知正常..(大多数时间) 我可以看到所有的崩溃和错误...

但是...如果我离线运行该应用程序(在大多数手机上,这仅是首次运行时发生)..它会崩溃

<receiver
android:name="com.google.firebase.iid.FirebaseInstanceIdInternalReceiver"
     android:exported="false" /> 
<receiver
    android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver"
    android:exported="true"
    android:permission="com.google.android.c2dm.permission.SEND">
    <intent-filter>
        <action android:name="com.google.android.c2dm.intent.RECEIVE" />
        <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
        <category android:name="${applicationId}" />
    </intent-filter>
</receiver>

但是一个Galaxy Core Prime Android 5.1.1 ..即使已连接,它也会崩溃...

有什么帮助或想法吗?

0 个答案:

没有答案
相关问题