繁体   English   中英

Urban Airship Push失败(无法启动应用-程序错误)

[英]Urban Airship push fails (unable to launch app - process is bad)

我的城市飞艇推送在设备上随机失败。 如果发生故障,我可以看到基本的GCM消息已通过wifi正确到达设备,但是该GCM消息已被阻隔,而没有转发到Urban Airship层(如以下日志所示):

GCM           : GCM message com.example.app
GCM/DMM       : broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE pkg=com.example.app (has extras) }
BroadcastQueue: Unable to launch app com.example.app/10055 for broadcast Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x10 pkg=com.example.app (has extras) }: process is bad

请记住,我的大多数UA推送(到同一设备上的同一应用程序)都可以正常工作,因此这可能不是典型的配置问题。 当我的推送成功时,日志如下所示:

GCM    : GCM message com.example.app
UALib  : PushService startService
UALib  : Received GCM push
UALib  : Incrementing notification id count UALib  : Notification id: 1001
Example: Received intent: Intent { act=com.urbanairship.push.PUSH_RECEIVED flg=0x10 cmp=com.example.app/.ua.UaExtraReceiver (has extras) }
Example: ACTION_PUSH_RECEIVED. alert:i like potatoes, id:1001

顺便说一句,我在Kitkat平板电脑上使用UrbanAirship 3.2.0 jar。

我遇到了类似的错误,并且必须保留FCM服务的导出状态。 加:

android:exported="true"

或完全删除导出的内容

我的服务现在看起来像这样:

    <service
        android:name=".service.MyFirebaseMessagingService"
        android:exported="true"
        >
        <intent-filter>
            <action android:name="com.google.firebase.MESSAGING_EVENT" />
        </intent-filter>
    </service>
    <service
        android:name=".service.MyFirebaseInstanceIdService"
        android:exported="true"
        >
        <intent-filter>
            <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
        </intent-filter>
    </service>

暂无
暂无

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

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