NearbyBackgroundBeacons demo在订阅时返回未知状态代码2801

时间:2016-02-29 12:17:47

标签: android google-api google-play-services bluetooth-lowenergy google-nearby

我正在使用Google NearbyBackgroundBeacons示例测试Nearby Messages API,

https://github.com/googlesamples/android- 附近/树/主/消息/ NearbyBackgroundBeacons

如README中所述,我创建了一个API密钥并将其放置在AndroidManifest.xml中。我的Estimote Beacon配置为EddyStone-UID。它是使用Google Proximity API注册的,状态为ACTIVE。

当我在Samsung Galaxy S4,API 19,Android 4.4.4上运行NearbyBackgroundBeacons演示时,播放服务8.4.89,我看到以下错误

  

02-29 07:08:55.363   18073-18073 / com.google.android.gms.nearby.messages.samples.nearbybackgroundbeacons   E / MainActivityFragment:无法解决错误。状态:   状态{statusCode =未知状态代码:2801,分辨率= null}

致电

Nearby.Messages.subscribe(GoogleApiClient, PendingIntent, SubscribeOptions)

1 个答案:

答案 0 :(得分:1)

2801 TOO_MANY_PENDING_INTENTSNearbyMessagesStatusCodes

使用NearbyMessagesStatusCodes.getStatusCodeString(int)代替CommonStatusCodes中的{}。它将正确转换附近的代码和公共代码。