{ "id": "153853", "key": "AC-541", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2015-12-17T10:47:10.000+0000", "created": "2015-12-15T17:02:54.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "updated": "2015-12-17T11:07:12.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Hello.\r\n\r\nI'm trying to integrate Share extension in Titanium app.\r\n\r\nI initially created new app id (\"com.foo.share\") in Apple developer portal and enabled group capability. Then I created new XCode project \r\n* open XCode, then File -> New -> Project, select Single View Application and type Product Name, for example \"share\" so bundle identifier is \"com.foo.share\"\r\nThen I added new Target\r\n* File -> New -> Target -> Share extension and type Product Name, for example \"Ext\" so bundle identifier is \"com.foo.share.Ext\"\r\n\r\nSetup Code signing identities for both app and extension to the same identity and optionally add App Groups under \"Capabilities\". In XCode, change extension's Info.plist change Bundle identifier to \"com.foo.share.Ext\" (this is required for Ti app to sign app correctly).\r\n\r\nRun app from XCode to make sure extension works. Check that app icon is present in Photos app when you click on share icon.\r\n\r\n\r\nNow, add extension to ti app. Create new ti app with \"com.foo.share\", add extension to tiapp.xml under \"ios\" tag:\r\n{code}\r\n \r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tPROVISION_PROFILE\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n{code}\r\n\r\nSet \"ABSOLUTE_PATH_TO_XCODE_PROJECT\" to XCode project path and \"PROVISION_PROFILE\" to provision profile created for extension app id.\r\n\r\nRun app on device and sign it with same signing identity as extension. App should run without a problem on device, but the problem is there's no app icon when share icon is pressed in Photos app. There's extension added in generated XCode project but for some reason it just doesn't work (also, if generated project is run from XCode it doesn't run, but if I try to add new extension to that project, it works fine).\r\n\r\nIf you need more info (or sample project), please let me know. :)\r\n\r\n\r\nThanks.", "attachment": [], "flagged": false, "summary": "Share extension integration", "creator": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "* XCode 7.2\r\n* Ti SDK 5.1.1.GA\r\n* Ti CLI 5.0.5\r\n* NodeJS v0.10.37", "comment": { "comments": [ { "id": "373202", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2015-12-17T10:47:10.000+0000", "updated": "2015-12-17T10:47:10.000+0000" }, { "id": "373203", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Thanks :)", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-12-17T11:07:12.000+0000", "updated": "2015-12-17T11:07:12.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }