Tag: ibm mobile services

Bluelist应用程序抛出“注册失败创build远程云数据库的可选(”test1“)超时

我有一个基于这个bluemix示例应用程序的Bluelist应用程序 。 我在数据库中添加了更多types的数据,并且还更改了Node.Js应用程序,以便为不同的用户创build一个“todosdb”。 在过去的几天,它几次抛出以下错误。 当我删除远程数据库时,它再次运行。 但它只是再次抛出同样的错误。 我删除了数据库,这次没有修复。 仍然得到相同的错误。 也尝试了示例应用程序本身,它会引发同样的错误。 有人可以告诉我如何debugging吗? 2015-11-13 20:06:33.303 bluelist-swift[57121:1075334] [DEBUG] [IMF] -[IMFAuthorizationRequest requestFinished:] in IMFAuthorizationRequest.m:341 :: Response Header: { Connection = "Keep-Alive"; "Content-Type" = "application/json;charset=UTF-8"; Date = "Fri, 13 Nov 2015 20:06:33 GMT"; "Transfer-Encoding" = Identity; "X-Backside-Transport" = "OK OK"; "X-Cf-Requestid" = "b5bf38ed-a48b-4e69-4852-bb1f4c81011a"; "X-Client-IP" = "80.111.218.187"; "X-Global-Transaction-ID" = 1902424573; "X-Powered-By" = […]

微服务和离子

您可以使用MEAN堆栈中的离子通过AMQPS通信使用微型服务来构build移动应用程序吗? 我主要关心的是,如果使用Bluemix构build微服务,并且每个实例都是独立的,那么我将如何将此体系结构迁移到移动应用程序。 提前致谢。

IBM Bluemix移动客户端访问的环回ACLS principalId / type?

我试图保护我的回环应用程序模型,以便通过移动客户端访问( bluemix )进行身份validation的用户只能POST(1)到一个模型,其余的只能通过用户/angular色(通过用户/angular色)进行身份validation。 我想使用model.json acls(因为我不知道更好)。 但我无法find移动客户端访问用户/策略的principalId /types。 我错过了什么? (1)使用这个helper.js https://github.com/strongloop/loopback/issues/651#issuecomment-167111395来达到这个目的。 有更好的解决办法吗?

IBM推送通知:无效的Json

我尝试使用https://mobile.ng.bluemix.net/imfpush/v1/apps/ {appID} / devices / {deviceID}在本网站上推送通知: https ://mobile.ng.bluemix.net / imfpush /#/ ,但是我有一个错误信息 身体: { "alert" : "You have a request for payment."} 错误信息: 400 { "code": "FPWSE0004E", "message": "Bad Request – Invalid JSON." } 并尝试通过在nodejs上调用https请求来使用 在我的代码中: var message = { alert : "You have a request for payment.", url : "payment_id" }; var headers = […]

Bluemix中的Android上的MobileFirst令牌错误

我正在尝试Android上的Bluelist演示 ,我收到下面的错误… 看起来移动服务正在投掷401 。 11-03 19:42:52.469 31488-31527/com.ibm.bluelist E/com.ibm.mobile.services.core.http.IBMMutableHttpRequest﹕ Request to 'https://winmobile.mybluemix.net/data/helo' failed. IBMBLUEMIX-0300E: Request by com.ibm.mobile.services.data.IBMData was rejected by MAS. Status=401, Response={"error":"You are not authorized.","status":"failure"} . 11-03 19:42:52.479 31488-31508/com.ibm.bluelist E/getToken(34252)﹕ Server rejected request for with status code 401 com.ibm.mobile.services.data.internal.HttpFailure: Http Response Code: 401 at com.ibm.mobile.services.data.internal.Connection.getToken(Connection.java:199) at com.ibm.mobile.services.data.internal.Connection.access$400(Connection.java:43) at com.ibm.mobile.services.data.internal.Connection$Receiver.run(Connection.java:412) 11-03 19:42:52.479 31488-31508/com.ibm.bluelist E/Connection:Receiver(34252)﹕ Http Response […]

推送后未注册的设备被发送

这听起来很奇怪,但我看不到任何其他的解释。 我已经在Bluemix上设置了IBM推送通知,这是我之前完成的。 出于某种原因,我build立了这个新的应用程序。 任何时候我发送一个推送通知,它不会通过,我尝试再次这样做,它告诉我没有设备。 这只发生在我身上,也许是它的服务问题? 有些事情我试过/发现: 我的设备正在注册并通过控制台从服务接收成功的消息。 我只有1个设备,但监控现在告诉我有7个设备已经注册通知。 当使用Web控制台发送推送通知时,它表示第一次成功(但没有任何通过),再次单击说Internal Server error: No devices found 。 使用swagger文档,我input我的appID和search设备,没有出现。 我运行的应用程序,一个显示,我把应用程序在后台,一个仍然显示。 我通过大举发出通知,说成功了,检查注册的设备,返回空数组。 我的iOS应用程序中的代码仅限于为IMFPush / IMFCore cocoapods提供的样本,用于注册。 我没有任何退订代码。 我没有运行任何我的node.js代码,或只使用swagger / web控制台工具的iOS代码validation了这一点。 我正在使用之前用于其他应用的沙箱提供configuration文件。 我已经删除了IMF推送服务并重新创build。 任何帮助/见解将不胜感激。

IBM推送:不能在ibmpush.js中使用sendNotificationByDeviceIds

我有一个应用程序,并使用函数sendNotificationByDeviceIds如下: PushNotificationToConsumer: function(req, res) { queryCustomer.find({jpay_no : jpay_no}).done(function(customerReturn){ if(customerReturn.length > 0){ var device_id = customerReturn[0].attributes.device_id.toString(); req.ibmpush.sendNotificationByDeviceIds(message, [device_id], null).then(function(response){ res.json({success : true, message : 'Send notification to patient with device_id:' +device_id+ ' successful ' }); },function(err){ res.json(err); }); }else{ } }, function(err){ res.json(err); }) } 错误消息: 在app.js上:我声明了ibmpush = require('ibmpush') 请帮助给我你的想法。 谢谢

IBM PushNotification:Not Found – 目标资源“PushDevice”不存在

我尝试在https://mobile.ng.bluemix.net/imfpush/#!/devices/put_apps_applicationId_devices_deviceId上使用API​​ swigger PUT / apps / {applicationId} / devices / {deviceId} 。 但是我有一个错误信息 { "code": "FPWSE0001E", "message": "Not Found – The target resource 'PushDevice' does not exist. Check the '23e107c7292d17a772914af05c23d10750613aaa' parameter." } 请帮助给我你的想法