{ "id": "153674", "key": "TIMOB-20107", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2015-12-15T03:01:52.000+0000", "created": "2015-12-07T22:32:20.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "iOS", "whatsapp" ], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" }, { "id": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" }, { "id": "17532", "name": "Release 5.1.1", "archived": false, "released": true, "releaseDate": "2015-11-24" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T18:58:24.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h6. Issue Description\r\nTrying to share a url through whatsapp using the openUrl function, for example below is the url: \r\nhttps://itunes.apple.com/ae/app/whatsapp-messenger/id310633997?mt=8 \r\n\r\nafter opening the whats app application and select a contact the text field is empty with no data poopulated to be shared.\r\n\r\nIf the = symbol is removed the whatsapp text field is with the full data. \r\n\r\nh6.Steps to Reproduce\r\n1- Create a new simple classic project\r\n2- Replace in the app.js file the below test-case code\r\n3- Run on device with whatsapp installed\r\n4. Click the share button\r\n5. Select a contact in whatsapp \r\n6. The textfield is empty. \r\n\r\nh6.Test Case\r\n{code}\r\nvar win = Titanium.UI.createWindow({ \r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar share_button = Ti.UI.createButton({\r\n\ttitle: \"share\"\r\n});\r\n\r\nwin.add(share_button);\r\nwin.open();\r\nshare_button.addEventListener(\"click\", function(){\r\n\r\n\tvar url = \"https://itunes.apple.com/ae/app/whatsapp-messenger/id310633997mt\\=8\"; \r\n\tvar whatsappUrl = 'whatsapp://send?text='+url;\r\n\tTi.Platform.openURL(whatsappUrl); \t\t\r\n\tTi.API.Info(\"https://itunes.apple.com/ae/app/whatsapp-messenger/id310633997?mt\\=8\");\r\n\r\n});\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: openUrl to share data through whats app is not sharing the data if there is a \"=\" equal symbol in the shared data", "creator": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 9.1\r\nXcode 7\r\nTitanium SDK 5.1.1.GA", "closedSprints": [ { "id": 536, "state": "closed", "name": "2015 Sprint 25 SDK", "startDate": "2015-12-05T01:30:40.415Z", "endDate": "2015-12-19T01:30:00.000Z", "completeDate": "2015-12-29T03:19:42.127Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "372938", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hi, This is a issue with the whatsapp api that we cannot do a generic fix to. basically, for the property *'text'*, if you wish to include a url, you have to use http encoding.\r\nfor this example, it'll be:\r\n{{var url = \"https://itunes.apple.com/ae/app/whatsapp-messenger/id310633997mt%3D8\";}}\r\nThe encoding for '=' is %3D.\r\nRemember, this is only necessary for this condition:\r\n*any url for 'text=' for whatsapp*\r\nYou don't have to do encoding for {{'whatsapp://send?text='}}", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-12-15T02:59:10.000+0000", "updated": "2015-12-15T03:01:30.000+0000" }, { "id": "415722", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket with reference to the previous comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T18:58:24.000+0000", "updated": "2017-03-24T18:58:24.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }