{ "id": "139256", "key": "AC-3290", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-12-21T14:30:19.000+0000", "created": "2014-11-07T12:26:02.000+0000", "labels": [ "ACS", "Android", "Push", "message" ], "versions": [], "issuelinks": [], "assignee": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "updated": "2016-03-08T07:57:42.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14545", "name": "Documentation" }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Some times Push messages are not receiving to devices, But Mean time its receiving fine,\r\n\r\nCan any one tell this is happening because of ACS Server issue , or the slow internet issue on the device, We are using ACS.\r\n", "attachment": [ { "id": "52844", "filename": "app.js", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-11-26T09:05:54.000+0000", "size": 2314, "mimeType": "text/javascript" } ], "flagged": false, "summary": "Some times Push messages are not receiving on devices", "creator": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "CLI version 3.4.0, Titanium SDK version 3.4.0.GA\r\nAndroid 4.0.4, 4.1.2, 4.4\r\nACS\r\nMac OS X 10.9.5", "comment": { "comments": [ { "id": "332386", "author": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hi\r\nCan you update the status? Its important to us for launch our app to stores.\r\n", "updateAuthor": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-11-16T10:44:13.000+0000", "updated": "2014-11-16T10:44:13.000+0000" }, { "id": "332684", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nSorry for the late. \r\n\r\nWould you please provide your App Key (for the app having problem), we can check it from our side. For secure reason, you can send the key to my email. (sliang@appcelerator.com)\r\nAlso provide some examples: like which one is received, and which one is not but should be received.\r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-11-18T09:55:09.000+0000", "updated": "2014-11-18T09:55:09.000+0000" }, { "id": "332854", "author": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hi Shuo,\r\n\r\nI have emailed you the below,\r\nAPP ID: XXxxXXXXXXXXXXXXXXXXXX\r\n\r\nWe have coded to send the Push notifications when A commenting on B's item and also when A like that B's item etc.\r\nThese Push messages are receiving some time But not some other time like i posted here, \r\n\r\nNote : A,B - Different users", "updateAuthor": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-11-19T04:22:49.000+0000", "updated": "2014-11-19T04:22:49.000+0000" }, { "id": "333020", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nPlease provide the detail of success and fail push examples. like the push ID or something can identity different push notifications. You may get those info from push log of web console.\r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-11-20T06:40:44.000+0000", "updated": "2014-11-20T07:00:41.000+0000" }, { "id": "333373", "author": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hi,\r\nSorry for the late reply,\r\n\r\nI emailed our AppID to you,\r\n\r\nand also some time we are getting duplicate push messages. not sure why?\r\nplease help us to find solution.", "updateAuthor": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-11-24T12:52:32.000+0000", "updated": "2014-11-25T04:25:46.000+0000" }, { "id": "333537", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nI need the detail of your example push notification. There are more then 18,000,000 notifications for your app. We can't address it from so many data. \r\nWould you please provider some more detail. Like if the push A should be received but it not, you have to provide us the push id of A or anything detail can address it from millions of data. and push b got duplicate, and what is B's push id.\r\n\r\nRegard,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-11-25T01:49:00.000+0000", "updated": "2014-11-25T01:49:00.000+0000" }, { "id": "333560", "author": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hi,\r\n\r\nHere is the push ids that we were got the multiple(duplicate) push messages.\r\n\r\n547315e62be23cc0ca002d9e\r\n547315b7133307c24b002df1\r\n\r\ni used to send a private message on a user 'a'\r\nand the user a is logged in with two devices and the above are the device user id's\r\nand 547315b7133307c24b002df1 id got duplicate message at the same time\r\n\r\nand the same happened with the below id (5464db7744f2450e5e06a38c) got duplicate on (2014-11-23 20:20:49).\r\n\r\n546f3ff11aab9d121a0b2789\r\n5464db7744f2450e5e06a38c\r\n", "updateAuthor": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-11-25T05:39:51.000+0000", "updated": "2014-11-25T05:39:51.000+0000" }, { "id": "333841", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nJust check the database from our side, can't find any two push notifications has 2 same payload. There is not any error or unusually.\r\nso there is something need to confirmation.\r\n1. When you said got multiple push messages. Do you mean get same message twice in same device or get same message in two device at same time.\r\n2. Please check the push log in your web console[], see there is any push notifications duplicated. If yes, please attach a screen shot of that.\r\n3. If not, maybe there is something wrong with your code. You may need provide part of your code, include how you send a push and how you receive a push. \r\n4. Here is a simple code attached, may help you with the problem. ", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-11-26T09:05:29.000+0000", "updated": "2014-11-26T09:05:29.000+0000" }, { "id": "333843", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "About the notification missing, still do more search to address what really happened here\r\n", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-11-26T09:27:19.000+0000", "updated": "2014-11-26T09:27:19.000+0000" }, { "id": "334111", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nDid more research, but can't find any unusual in server side. So did you run the test recently and did the missing problem still happen? If yes, could you provide some latest error example, like push id and so on. Thanks\r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-12-01T11:43:12.000+0000", "updated": "2014-12-01T11:43:12.000+0000" }, { "id": "334322", "author": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hi Shuo Liang ,\r\n\r\nToday i got delay for receiving push messages to the id \r\n\"547d79cecbb1d3c3f204cca0\"\r\nplease look suggest.", "updateAuthor": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-12-02T11:36:22.000+0000", "updated": "2014-12-02T11:36:47.000+0000" }, { "id": "335234", "author": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hi Shuo Liang,\r\n\r\nAwaiting for your request and its important to us .", "updateAuthor": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-12-07T14:12:58.000+0000", "updated": "2014-12-07T14:13:52.000+0000" }, { "id": "336370", "author": { "name": "supasnyder", "key": "supasnyder", "displayName": "Sean Snyder", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I too am waiting for an update on this.", "updateAuthor": { "name": "supasnyder", "key": "supasnyder", "displayName": "Sean Snyder", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-15T15:24:30.000+0000", "updated": "2014-12-15T15:24:30.000+0000" }, { "id": "336747", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nKeep monitoring for a while, can't see any delay from our server side. Based on the database, the push notification has been sent to google server at the same time when you send the call notification API to our server. Which means the delay was happened in Google side. The situation happened before, as some times Google Cloud Message Service is not complete stable for free users. \r\n\r\nOn the other hand, does the push notification missing problem still happen?\r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-12-17T08:36:01.000+0000", "updated": "2014-12-17T08:36:01.000+0000" }, { "id": "336760", "author": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Ok Thanks for the information,\r\n\r\npush notification missing issue is not happening so far but in android 4.2.2 jellybean not getting push messages ,\r\nis there any issue with acs android 4.2.2 jellybean? is there any fix regarding this?", "updateAuthor": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-12-17T13:48:16.000+0000", "updated": "2014-12-17T13:48:16.000+0000" }, { "id": "336994", "author": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hi Shuo Liang,\r\n\r\nIn addition to my above comment\r\n\r\nPLEASE read the below and reply ASAP, Since apple will not allow apps update after Dec 22nd,\r\n\r\nToday we just wanted to ensure the Production mode of Push is working fine or not. So we have tested that, But it seems to be no iOS device is registered on the ACS cloud console, And there was no user list created, So i have google for it, and got the below links are on the same issue.\r\n\r\nhttps://developer.appcelerator.com/question/147600/push-notifications-work-dandy-in-development-but-in-production-its-a-different-story\r\nhttps://developer.appcelerator.com/question/177326/acs-cloud-push-notifications-ios\r\n\r\nSo i just test by copy paste the Development api-key, ouath secret, ouath key into Production api-key,ouath secret, ouath key on my tiapp.xml.\r\n\r\nAfter that the devices are registered into the acs cloud console with the IPA which i created for Ad hoc distribution. Can you please explain i should revert my changes on tiapp.xml or not? \r\n\r\nIF yes, then please explain why the device is not registered with the old key pairs.\r\n\r\nNote: I just created signed apk with the old key pair, and i have installed that signed apk , its subscribed the device and received the push message on that device.\r\n\r\n\r\nI changed this,\r\n developmentsecretkeys HERE \r\n developmentKEYS HERE\r\n ProductionKEY HERE \r\n ProductionSECRETHERE\r\n ProductionKEYHERE\r\n 8AUbJ9eQdJ3Rp2zEmqYekjESqoUTD71Q\r\n \r\nThis is OLD and original:\r\n ", "updateAuthor": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-12-18T10:32:29.000+0000", "updated": "2014-12-18T11:45:03.000+0000" }, { "id": "336999", "author": { "name": "supasnyder", "key": "supasnyder", "displayName": "Sean Snyder", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "supasnyder", "key": "supasnyder", "displayName": "Sean Snyder", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-18T14:39:03.000+0000", "updated": "2014-12-18T14:39:03.000+0000" }, { "id": "337104", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "HI,\r\n\r\n1. You can't mix development key and production key, as it will link to different server environment. push notification through development environment will go to apple's development sandbox server, production will go to different one.\r\n2. For IOS push notification, you have to generate two different certificates. One for development, the other one for production distribution. So make sure you upload the two right certificates to cloud console setting.\r\n3. When you mentioned \"no iOS device is registered on the ACS\", did you get the device token? If not, it means you didn't register successfully. \r\n4. Also for each IOS device registration, there is a API call. You can view it for api log from acs console. Please confirm those api calling is return 200 status for success.\r\n5. If you still can't figure out it, Please email me this production key, and related API Log(like register IOS device). Then I can check what happened in our side.\r\n\r\n6. For ticket TIMOB-18164, just talked to mobile engineer team, I afraid that request will not be handle recently, as we are in middle of two big releases. For now, you may expect that in coming summer or later. \r\n\r\nRegards,\r\nShuo \r\n ", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-12-19T02:19:16.000+0000", "updated": "2014-12-19T02:20:07.000+0000" }, { "id": "337113", "author": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hi Shuo,\r\n\r\nThanks for your reply, Please help me to fix this as much as possible,\r\n\r\n Also i have one BIG doubt, Is it possible to test (on Adhoc distribution) the push message with production keys before submitting to app store?\r\n \r\n1. So i should replace the Key combination to old one Right?\r\n2. Yes , i have uploaded two different certificates on ACS console\r\n3, Will check and let you know\r\n4. Yes, I got response as 200.\r\n5.I emailed you the Production key\r\n6.Thanks for talking to them", "updateAuthor": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-12-19T04:33:10.000+0000", "updated": "2014-12-19T04:37:32.000+0000" }, { "id": "337118", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "\r\nYe, you can test it before submitting to app store. just follow the guide for ad Hoc \r\n[http://docs.appcelerator.com/platform/latest/#!/guide/Distributing_iOS_apps]\r\n1.Ye, you have to use the different keys, for your case the old one. \r\n2.Please check whether you can get the device token.\r\n3.Could you provide the API log you mentioned whose response is 200.", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-12-19T05:31:42.000+0000", "updated": "2014-12-19T05:31:42.000+0000" }, { "id": "337119", "author": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hi Shou,\r\n\r\nPlease check your email and reply to us. We are in the hectic situation now, \r\n\r\nRegarding Adhoc, We have received the Push messages on Adhoc mode and we have tested that for past 2 months, But that is got under development mode.\r\n\r\nAnd yesterday only we noticed the production mode is not working for the Adhoc, after that we have changed the key sets like i said, and we got the push messages on Adhoc in production mode but that key set belongs to development", "updateAuthor": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-12-19T05:40:43.000+0000", "updated": "2014-12-19T05:54:41.000+0000" }, { "id": "337261", "author": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nI am using ti.cloudpush version 3.3.4 with the below code. It's working. I haven't observed any unexpected behaviors. \r\n\r\nh5. PLATFORM SPECIFICATION.\r\n\r\nMac OSX 10.9.5\r\nti.coludpush 3.3.4\r\nAndroid Device, Google Nexus 7.\r\n\r\nh5. CODE SAMPLE\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : '#ccc',\r\n\ttitle : 'Android Cloud Push Notification'\r\n});\r\n \r\nvar CloudPush = require('ti.cloudpush');\r\n CloudPush.debug = true;\r\n CloudPush.enabled = true;\r\n CloudPush.showTrayNotificationsWhenFocused = true;\r\n CloudPush.showTrayNotification = true;\r\n CloudPush.focusAppOnPush = false;\r\n\r\nvar deviceToken=null;\r\nvar Cloud = require('ti.cloud');\r\nCloud.debug = true;\r\n \r\nvar submit = Ti.UI.createButton({\r\n\ttitle : 'Register For Push Notification',\r\n\tcolor : '#000',\r\n\theight : 60,\r\n\twidth : 200,\r\n\ttop : 100,\r\n});\r\n \r\nwin.add(submit);\r\n \r\nsubmit.addEventListener('click', function(e) {\r\n\tloginDefault();\r\n});\r\n\r\nvar submit1 = Ti.UI.createButton({\r\n\ttitle : 'Subscribe Device',\r\n\tcolor : '#000',\r\n\theight : 60,\r\n\twidth : 200,\r\n\ttop : 200,\r\n});\r\n \r\nwin.add(submit1);\r\n \r\nsubmit1.addEventListener('click', function(e) {\r\n\tdefaultSubscribe();\r\n});\r\n\r\nvar submit2 = Ti.UI.createButton({\r\n\ttitle : 'Unsubscribe Device',\r\n\tcolor : '#000',\r\n\theight : 60,\r\n\twidth : 200,\r\n\ttop : 300,\r\n});\r\n \r\nwin.add(submit2);\r\n \r\nsubmit2.addEventListener('click', function(e) {\r\n\tdefaultUnSubscribe();\r\n});\r\n\r\n\r\nCloudPush.retrieveDeviceToken({\r\n\tsuccess : deviceTokenSuccess,\r\n\terror : deviceTokenError\r\n});\r\n\r\nfunction deviceTokenSuccess(e) {\r\n\tdeviceToken = e.deviceToken;\r\n}\r\n \r\nfunction deviceTokenError(e) {\r\n\talert('Failed to register for push notifications! ' + e.error);\r\n}\r\n\r\nCloudPush.addEventListener('callback', function(evt) {\r\n\talert(\"Notification received: \" + evt.payload);\r\n});\r\n\r\nCloudPush.addEventListener('trayClickLaunchedApp', function(evt) {\r\n\tTi.API.info('Tray Click Launched App (app was not running)');\r\n});\r\n \r\nCloudPush.addEventListener('trayClickFocusedApp', function(evt) {\r\n\tTi.API.info('Tray Click Focused App (app was already running)');\r\n});\r\n \r\nfunction loginDefault(e) {\r\n\tCloud.Users.login({\r\n\t\tlogin : '-----------@gmail.com',\r\n\t\tpassword : '123456'\r\n\t}, function(e) {\r\n\t\tif (e.success) {\r\n\t\t\talert(\"Successfully Loged In\");\r\n\t\t} else {\r\n\t\t\talert('Error: ' + ((e.error && e.message) || JSON.stringify(e)));\r\n\t\t}\r\n\t});\r\n}\r\n \r\nfunction defaultSubscribe() {\r\n\tCloud.PushNotifications.subscribe({\r\n\t\tchannel : 'alert',\r\n\t\tdevice_token : deviceToken,\r\n\t\ttype : 'android'\r\n\t}, function(e) {\r\n\t\tif (e.success) {\r\n\t\t\talert('Device Subscribed!');\r\n\t\t} else {\r\n\t\t\talert('Error:' + ((e.error && e.message) || JSON.stringify(e)));\r\n\t\t}\r\n\t});\r\n}\r\n\r\nfunction defaultUnSubscribe() {\r\n\tCloud.PushNotifications.unsubscribe({\r\n \tchannel: 'alert',\r\n \tdevice_token: deviceToken,\r\n \ttype : 'android'\r\n\t}, function (e) {\r\n \tif (e.success) {\r\n \talert('Device Unsubscribed!');\r\n \t} else {\r\n \talert('Error:\\n' + ((e.error && e.message) || JSON.stringify(e)));\r\n \t}\r\n\t});\r\n}\r\n \r\nwin.open();\r\n\r\n{code}\r\n\r\nThanks.", "updateAuthor": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2014-12-21T09:54:57.000+0000", "updated": "2014-12-21T09:54:57.000+0000" } ], "maxResults": 23, "total": 23, "startAt": 0 } } }