简体   繁体   English

发送推送时android应用崩溃

[英]android app crash when I send push

I have an android app in market tested and working yesterday. 我在市场上有一个经过测试的Android应用程序,昨天可以工作。 And since yesterday the code haven't changed so the error must be in payload or device (google services not installed or diferent operating system??) When I send a push notification, the app in the device crash and I get no error so I'm blind here. 从昨天开始,代码没有更改,因此错误必须在有效负载或设备中(未安装Google服务或不同的操作系统?)。当我发送推送通知时,设备中的应用程序崩溃了,并且我没有收到任何错误,所以我在这里瞎了。 I'm printing the payload in json and I don't see anything wrong here, but maybe somebody with eyes more acurate can. 我正在json中打印有效负载,但在这里我看不到任何错误,但也许有人的眼睛更敏锐。

{"registration_ids":["xxxnumbersletersxxxx"],"data":{"message":"Nuevo contenido disponible!","link":"www.hobbyconsolas.es"}}

I also put the payload in php just in case: 我还把有效负载放在php中,以防万一:

$data = array( 'message' => 'Nuevo contenido disponible!' , 'link' => $link,);

I have finally discovered the issue. 我终于发现了问题。 This is happening only with devices with the new operating system android 5.0 + 这仅在具有新操作系统android 5.0 +的设备上发生

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

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