{
"id": "151450",
"key": "AC-428",
"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": "8",
"description": "",
"name": "Needs more info"
},
"resolutiondate": "2015-11-21T18:51:43.000+0000",
"created": "2015-09-24T10:01:14.000+0000",
"labels": [
"android",
"handler",
"scheme",
"url"
],
"versions": [],
"issuelinks": [],
"assignee": {
"name": "sdarda",
"key": "sdarda",
"displayName": "Sharif AbuDarda",
"active": false,
"timeZone": "Asia/Dhaka"
},
"updated": "2015-12-23T16:40:09.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": "14551",
"name": "Studio",
"description": "Please enter tickets related to Titanium Studio here."
}
],
"description": "I want to add an URL handler to my app. Currently, the app is opening when I open 'myapp://history', but there is no way to receive 'history' in the app. I followed a bunch of tutorials, including the tutorial of Fokke, but the intent data is always null. \r\n\r\ntiapp.xml\r\n{code:xml}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n{code}\r\n\r\nFirst lines of alloy.js\r\n{code:javascript}\r\nif (OS_ANDROID) {\r\n\tvar platformTools = require('bencoding.android.tools').createPlatform(),\r\n\t wasInForeGround = true;\r\n\r\n\tsetInterval(function() {\r\n\t\tvar isInForeground = platformTools.isInForeground();\r\n\r\n\t\tif (wasInForeGround !== isInForeground) {\r\n\t\t\tif (isInForeground) {\r\n\t\t\t\tconsole.log('start');\r\n\t\t\t\tconsole.log(Ti.Android.currentActivity.getIntent());\r\n\t\t\t\tconsole.log('stop');\r\n\t\t\t}\r\n\t\t\twasInForeGround = isInForeground;\r\n\t\t}\r\n\t}, 2000);\r\n}\r\n{code}",
"attachment": [],
"flagged": false,
"summary": "URL scheme Android returns null",
"creator": {
"name": "janvankampen",
"key": "janvankampen",
"displayName": "Jan van Kampen",
"active": true,
"timeZone": "America/Los_Angeles"
},
"subtasks": [],
"reporter": {
"name": "janvankampen",
"key": "janvankampen",
"displayName": "Jan van Kampen",
"active": true,
"timeZone": "America/Los_Angeles"
},
"environment": "Appcelerator Studio, build: 4.3.0.201509151348\r\n(c) Copyright 2012-2014 by Appcelerator, Inc. All rights reserved.\r\n\r\nBuild: jenkins-appcelerator-rcp-master-322 (origin/master)\r\nDate: 15 September 2015, 13:48:44\r\n\r\n\r\n\r\nTitanium 4.1.1GA",
"comment": {
"comments": [
{
"id": "370294",
"author": {
"name": "sdarda",
"key": "sdarda",
"displayName": "Sharif AbuDarda",
"active": false,
"timeZone": "Asia/Dhaka"
},
"body": "Hello, Can you take a look at these community links below?\r\n\r\n[Link1|https://developer.appcelerator.com/question/120393/custom-url-scheme---iphone--android]\r\n[Link2|https://developer.appcelerator.com/questions/tag/url%20scheme]\r\n[Link3|https://developer.appcelerator.com/question/162165/tiandroidcurrentactivityintentdata-always-null-when-application-resume]\r\n\r\nThanks.",
"updateAuthor": {
"name": "sdarda",
"key": "sdarda",
"displayName": "Sharif AbuDarda",
"active": false,
"timeZone": "Asia/Dhaka"
},
"created": "2015-11-15T08:06:15.000+0000",
"updated": "2015-11-15T08:06:15.000+0000"
},
{
"id": "373460",
"author": {
"name": "topener",
"key": "topener",
"displayName": "Rene Pot",
"active": true,
"timeZone": "Europe/Berlin"
},
"body": "Links provided do not show a solution. Note: this is an alloy application (I am co-worker of Jan, therefore my response :) )",
"updateAuthor": {
"name": "topener",
"key": "topener",
"displayName": "Rene Pot",
"active": true,
"timeZone": "Europe/Berlin"
},
"created": "2015-12-23T16:39:10.000+0000",
"updated": "2015-12-23T16:39:10.000+0000"
},
{
"id": "373461",
"author": {
"name": "thijsalbers",
"key": "thijsalbers",
"displayName": "Thijs",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "I'm experiencing exactly the same problems. Also in Common JS/Classic Titanium. Links provided do not provide any solution.",
"updateAuthor": {
"name": "thijsalbers",
"key": "thijsalbers",
"displayName": "Thijs",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2015-12-23T16:40:09.000+0000",
"updated": "2015-12-23T16:40:09.000+0000"
}
],
"maxResults": 3,
"total": 3,
"startAt": 0
}
}
}