简体   繁体   English

iOS应用程序似乎已使用Bluemix Push Cordova插件注册为Android设备

[英]iOS app seems to register as Android device using Bluemix Push Cordova plugin

I am trying to run the sample for bluemix push cordova app from here: 我正在尝试从此处运行bluemix push cordova应用程序的示例:

I am able to install the sample on the iOS device and when I click the register button, getting the following response: 我可以在iOS设备上安装示例,然后单击“注册”按钮,得到以下响应:

{"createdTime":"2016-08-23T10:53:26Z","lastUpdatedTime":"2016-08-23T10:53:26Z","createdMode":"API","deviceId":"xxxxxx-xxxx-xxxxxx","userId":"anonymous","token":"xxxx-xxxxx-xxxxx","platform":"A","href":"https://xxxxxx.ng.bluemix.net/imfpush/v1/apps/xxxxxx/devices/xxxxxx"}

In the response I can see that 在回应中,我可以看到

"platform":"A" “平台”:“ A”

which might be suggesting that the device is registering itself as Android device. 这可能表明该设备正在将自己注册为Android设备。

When i tried to push a test message to the app from Bluemix console to iOS devices, it says "No Devices Found". 当我尝试将测试消息从Bluemix控制台推送到应用程序到iOS设备时,显示“找不到设备”。 That not the case for Android. Android并非如此。 I am able to receive the push to Android device. 我能够收到推送到Android设备的信息。

'A' refers to an iOS device (tag being Apple) rather than a Google Android device ('G'). “ A”是指iOS设备(标记为Apple),而不是Google Android设备(“ G”)。 This can be seen on the REST API by selecting the 'Model' view rather than the 'Model Schema' view. 通过选择“模型”视图而不是“模型架构”视图,可以在REST API上看到这一点。

platform (string, optional):

The device platform. 'A' refers to Apple(iOS) devices and 'G' refers to Google(Android) devices. = ['A', 'G']
string
Enum:   "A", "G"

Regarding the failure to receive push notifications on iOS I would make certain that your APNs certificate is valid and properly configured. 关于无法在iOS上接收推送通知的问题,我将确定您的APNs证书有效且配置正确。 If a push is attempted by Bluemix and APNs responds that the device token is invalid due to a certificate issue then it is pruned from the device list to prevent further failed attempts which may be why you are seeing the 'No Devices Found' error. 如果Bluemix尝试进行推送,并且APNs响应由于证书问题而导致设备令牌无效,那么将从设备列表中删除该令牌,以防止进一步失败的尝试,这可能就是您看到“未找到设备”错误的原因。

If everything looks good with your certificate please let us know your Push Service GUID (found on the Mobile Options button in your Push Dashboard's configure page) so we can investigate further. 如果您的证书一切正常,请告诉我们您的Push Service GUID(位于Push Dashboard的“配置”页面上的“移动选项”按钮上),以便我们进行进一步调查。

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

相关问题 Cordova iOS版本的Bluemix Push Plugin错误 - Bluemix Push Plugin error for Cordova iOS build 在Cordova App中注册设备时Bluemix Push Service Error - Bluemix Push Service Error while registering device in Cordova App 尝试将设备注册到Bluemix上的IBM Mobile First Push服务时,iOS应用程序崩溃 - iOS Application crashes when trying to register the device to IBM Mobile First Push service on Bluemix Bluemix Cordova iOS推送通知-看不到设备-内部服务器错误。 找不到设备 - Bluemix Cordova iOS Push notifications - Don't see device - Internal server error. No devices found 无法使用Android上的ibm-mfp-push cordova插件构建离子应用程序(与google-analytics cordova插件冲突) - Unable to build ionic app using the ibm-mfp-push cordova plugin on Android (conflict with google-analytics cordova plugin) 如何通过node.js Bluemix push API注册设备 - How to register a device through node.js Bluemix push API 使用bms-push cordova插件,点击在Android上收到的通知不会启动应用 - Using the bms-push cordova plugin, tapping on a notification received on Android do not launch the app Bluemix:无法运行Android Hello Push应用程序 - Bluemix: Failed to run Android Hello Push app 如何从IBM bluemix获取Android应用程序上的设备信息 - how to get device information on Android app from IBM bluemix IBM Bluemix iOS推送通知 - IBM Bluemix iOS Push Notifications
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM