{ "id": "130887", "key": "AC-734", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-08-26T04:39:19.000+0000", "created": "2014-05-26T23:35:26.000+0000", "labels": [ "TCSupport", "module", "push", "pushnotification", "urbanairship" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:36:59.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." } ], "description": "It seems that UrbanAirship has deprecated old versions of their SDK (i have sent an email to their engineering asking about it).\r\n\r\niOS now throws URL errors (bad URL) on registration attempts using the UA Module.\r\n\r\nI saw on the source that the module uses a very old version of the UA SDK v3.0.2 while the recent is version 4.0.0\r\n\r\nAlso as far as I have read the new one and compared to the old, they have changed a lot of stuff (including on the registration, using channels).\r\n\r\nIs the UA Module development handled by Appcelerator (or any volunteer Titan) or is it stalled for now?\r\n\r\n\r\nThanks.\r\n\r\n{code}\r\nMay 26 19:12:35 Raphael-Pedrinis-iPhone PiniOn[4894] : [D] -[UADeviceAPIClient registerWithData:onSuccess:onFailure:forcefully:] [Line 139] Running device registration.\r\nMay 26 19:12:35 Raphael-Pedrinis-iPhone PiniOn[4894] : [D] -[UAHTTPConnection connection:didFailWithError:] [Line 191] ERROR: connection didFailWithError: Error Domain=NSURLErrorDomain Code=-1000 \"bad URL\" UserInfo=0x165d8a30 {NSUnderlyingError=0x166cd460 \"bad URL\", NSLocalizedDescription=bad URL}\r\n{code}", "attachment": [], "flagged": false, "summary": "Urban Airship Module stopped working", "creator": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "subtasks": [], "reporter": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "environment": "Titanium 3.2.3.GA\r\nUrban Airship Module 3.0.0 (latest)\r\niOS", "comment": { "comments": [ { "id": "313629", "author": { "name": "hmrida", "key": "hmrida", "displayName": "Harish Mridha", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hi,\r\n\r\nI have tested the Urban Airship module, got the device ID and register using this module. It works fine for me.\r\n\r\nTESTING ENVIRONMENT:\r\n\r\nTi SDK 3.2.3.GA\r\nCLI version 3.3.0-rc\r\niOS version 7.1\r\nMac OS X 10.9 \r\n\r\nSAMPLE CODE\r\n\r\n{code:javascript}\r\n/*\r\n * Demonstrates how to set up your UA Airmail Mailbox,\r\n * and how to receive notifications from UA\r\n */\r\n\r\n// open a single window\r\nvar window = Ti.UI.createWindow({backgroundColor: 'white', layout: 'vertical'});\r\n\r\nvar btnOpen = Ti.UI.createButton({\r\n title: 'Open UA Inbox',\r\n width: 200, height: 40\r\n});\r\nbtnOpen.addEventListener('click', function() {\r\n // Open default mailbox\r\n UrbanAirship.displayInbox({ animated:true });\r\n});\r\nwindow.add(btnOpen);\r\n\r\nwindow.add(Ti.UI.createLabel({\r\n text: 'DeviceID:',\r\n top: 10,\r\n left: 10,\r\n textAlign: 'left',\r\n color: 'black',\r\n font: {fontSize: 18, fontStyle: 'bold'},\r\n height: Ti.UI.SIZE || 'auto'\r\n}));\r\n\r\nvar labelID = Ti.UI.createLabel({\r\n text: '',\r\n top: 10,\r\n left: 10,\r\n right: 10,\r\n textAlign: 'left',\r\n color: 'black',\r\n height: Ti.UI.SIZE || 'auto'\r\n});\r\nwindow.add(labelID);\r\n\r\nwindow.add(Ti.UI.createLabel({\r\n text: 'Last Message:',\r\n top: 10,\r\n left: 10,\r\n textAlign: 'left',\r\n color: 'black',\r\n font: {fontSize: 18, fontStyle: 'bold'},\r\n height: Ti.UI.SIZE || 'auto'\r\n}));\r\n\r\nvar labelMessage = Ti.UI.createLabel({\r\n text: '',\r\n top: 10,\r\n left: 10,\r\n right: 10,\r\n textAlign: 'left',\r\n color: 'black',\r\n height: Ti.UI.SIZE || 'auto'\r\n});\r\nwindow.add(labelMessage);\r\n\r\nwindow.add(Ti.UI.createLabel({\r\n text: 'Payload:',\r\n top: 10,\r\n left: 10,\r\n textAlign: 'left',\r\n color: 'black',\r\n font: {fontSize: 18, fontStyle: 'bold'},\r\n height: Ti.UI.SIZE || 'auto'\r\n}));\r\n\r\nvar labelPayload = Ti.UI.createLabel({\r\n text: ' ',\r\n top: 10,\r\n left: 10,\r\n right: 10,\r\n textAlign: 'left',\r\n color: 'black',\r\n height: Ti.UI.SIZE || 'auto'\r\n});\r\nwindow.add(labelPayload);\r\n\r\nwindow.open();\r\n\r\nvar UrbanAirship = require('ti.urbanairship');\r\nTi.API.info(\"module is => \" + UrbanAirship);\r\n\r\n/*\r\n * Urban Airship will load the options from an AirshipConfig.plist file that\r\n * should be stored in the application bundle. You will find an example\r\n * AirshipConfig.plist file in the 'example/platform/iphone' folder of the module.\r\n*/\r\n\r\n// Set UA options\r\nUrbanAirship.tags = [ 'testingtesting', 'appcelerator', 'my-tags' ];\r\nUrbanAirship.alias = 'testDevice';\r\nUrbanAirship.autoBadge = true;\r\nUrbanAirship.autoResetBadge = true;\r\n\r\nfunction eventCallback(e) {\r\n\t// Pass the notification to the module\r\n UrbanAirship.handleNotification(e.data);\r\n \t\r\n \tTi.API.info('Push message received');\r\n \tTi.API.info(' Message: ' + e.data.alert);\r\n \tTi.API.info(' Payload: ' + e.data.aps);\r\n \r\n labelMessage.text = e.data.alert;\r\n\tlabelPayload.text = JSON.stringify(e.data.aps);\t\r\n}\r\n\r\nfunction eventSuccess(e) {\r\n\t// *MUST* pass the received token to the module\r\n UrbanAirship.registerDevice(e.deviceToken); \r\n \r\n Ti.API.info('Received device token: ' + e.deviceToken);\r\n labelID.text = e.deviceToken;\r\n btnOpen.enabled = true;\t\t\r\n}\r\n\r\nfunction eventError(e) {\r\n Ti.API.info('Error:' + e.error);\r\n var alert = Ti.UI.createAlertDialog({\r\n title: 'Error',\r\n message: e.error\r\n });\r\n alert.show();\t\r\n}\r\n\r\nTi.Network.registerForPushNotifications({\r\n types:[\r\n Ti.Network.NOTIFICATION_TYPE_BADGE,\r\n Ti.Network.NOTIFICATION_TYPE_ALERT,\r\n Ti.Network.NOTIFICATION_TYPE_SOUND\r\n ],\r\n success: eventSuccess,\r\n error: eventError,\r\n callback: eventCallback\r\n});\r\n\r\n{code}\r\n\r\nScreenshot: https://www.dropbox.com/s/vw4ehhbs052o6ox/IMG_0156.PNG.jpg\r\n\r\nSTEPS TO TEST\r\n1. Create a new project\r\n2. Update app.js file with sample code\r\n3. Add ti.urbanairship module\r\n4. And run on iOS device 7.1\r\n5. Works fine\r\n\r\nEXPECTED RESULT\r\n\r\nIt’s working as expected.\r\n\r\nThanks\r\n", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-07-12T08:30:28.000+0000", "updated": "2014-08-08T06:54:10.000+0000" }, { "id": "317653", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello [~ygbr]! \r\n\r\nCan you please take a look into the above testcase and let me know if works for you as well?\r\n\r\nThanks! ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-08-08T06:54:50.000+0000", "updated": "2014-08-08T06:54:50.000+0000" }, { "id": "320268", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Our team tested this, working as expected. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-08-26T04:39:19.000+0000", "updated": "2014-08-26T04:39:19.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }