{ "id": "165388", "key": "MOD-2321", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "17610", "name": "Release 6.1.0", "archived": false, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-01-24T18:12:06.000+0000", "created": "2017-01-19T19:31:05.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "facebook", "ios", "pushcampains" ], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2018-08-06T17:49:16.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": "14521", "name": "Facebook" } ], "description": "I am not sure where to post this, as issues are disabled in Github's Ti.Facebook module. \r\n\r\nBut I have received from the client the request to implement facebook push campaigns (part of Facebook SDK now, not sure from when) , and it is not implemented in Ti.Facebook module. Is there any roadmap for it? \r\n\r\nhttps://developers.facebook.com/docs/analytics/push-campaigns", "attachment": [], "flagged": false, "summary": "iOS / Android: Facebook Push Campaigns", "creator": { "name": "annakozy@direcciona.me", "key": "annakozy@direcciona.me", "displayName": "Ganna Kozynenko", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "annakozy@direcciona.me", "key": "annakozy@direcciona.me", "displayName": "Ganna Kozynenko", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 796, "state": "closed", "name": "2017 Sprint 02 SDK", "startDate": "2017-01-15T00:00:41.845Z", "endDate": "2017-01-29T00:00:00.000Z", "completeDate": "2017-01-30T21:10:44.640Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "404881", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Thanks for the feature request. Can you create a PR on this? We will consider it. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-01-19T19:41:06.000+0000", "updated": "2017-01-19T19:41:06.000+0000" }, { "id": "404882", "author": { "name": "annakozy@direcciona.me", "key": "annakozy@direcciona.me", "displayName": "Ganna Kozynenko", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I don't know, I am not sure I have the required knowledge to implement it, because I am not a native developer ", "updateAuthor": { "name": "annakozy@direcciona.me", "key": "annakozy@direcciona.me", "displayName": "Ganna Kozynenko", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-19T19:47:34.000+0000", "updated": "2017-01-19T19:47:34.000+0000" }, { "id": "404883", "author": { "name": "annakozy@direcciona.me", "key": "annakozy@direcciona.me", "displayName": "Ganna Kozynenko", "active": true, "timeZone": "America/Los_Angeles" }, "body": "If I have no other choice, and the client insists, I will definitely try, but I am not sure about the outcome. \r\n\r\nAs a matter of fact, according to what I see, 2 methods should be added for things to work at a basic level (simple wrappers) : \r\n\r\n1. sending token \r\n\r\n[FBSDKAppEvents setPushNotificationsDeviceToken:deviceToken];\r\n\r\nor \r\n\r\nAppEventsLogger.setPushNotificationsRegistrationId(token);\r\n\r\n2. Loggin the received notification: \r\n\r\n[FBSDKAppEvents logPushNotificationOpen:userInfo action:identifier];\r\n\r\nand \r\n\r\nlogger.logPushNotificationOpen(payload);\r\n\r\n---\r\nRest of the push notifications stuff already present in Appcelerator or related modules (as in case of Android), so the user can use the normal Appcelerator push functionality to retrieve token and to log the received notifications. \r\n", "updateAuthor": { "name": "annakozy@direcciona.me", "key": "annakozy@direcciona.me", "displayName": "Ganna Kozynenko", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-19T19:59:19.000+0000", "updated": "2017-01-19T20:00:16.000+0000" }, { "id": "405152", "author": { "name": "annakozy@direcciona.me", "key": "annakozy@direcciona.me", "displayName": "Ganna Kozynenko", "active": true, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator-modules/ti.facebook/pull/81 --> IOS\r\n\r\nAndroid is on the way (doing testing with the app)\r\n", "updateAuthor": { "name": "annakozy@direcciona.me", "key": "annakozy@direcciona.me", "displayName": "Ganna Kozynenko", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-24T10:06:00.000+0000", "updated": "2017-01-24T10:06:00.000+0000" }, { "id": "405195", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR reviewed, adjusted and merged. [Ti.Facebook Android 6.2.0|https://github.com/appcelerator-modules/ti.facebook/releases/tag/android-6.2.0] and [Ti.Facebook iOS 5.4.0|https://github.com/appcelerator-modules/ti.facebook/releases/tag/ios-5.4.0] include the changes. [~annakozy@direcciona.me] please provide a single-app.js demo-code and testing-steps so our QE can test this ticket. ", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-24T18:14:38.000+0000", "updated": "2017-01-24T18:15:16.000+0000" }, { "id": "420446", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~annakozy@direcciona.me] Can you please provide demo code? I'll be validating this ticket.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-25T17:11:49.000+0000", "updated": "2017-05-25T17:11:49.000+0000" }, { "id": "420499", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Test-Case:\r\n{code:js}\r\nvar fb = require('facebook');\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n \r\nvar btn = Ti.UI.createButton({\r\n title: 'Register for push'\r\n});\r\n\r\nTi.Network.addEventListener('remote', function(e) {\r\n fb.logPushNotificationOpen(e.data, 'actionId');\r\n});\r\n \r\nbtn.addEventListener('click', function() {\r\n Ti.Network.registerForPushNotifications({\r\n types: [ Ti.Network.NOTIFICATION_TYPE_BADGE, Ti.Network.NOTIFICATION_TYPE_ALERT, Ti.Network.NOTIFICATION_TYPE_SOUND ],\r\n success: function(e) {\r\n facebook.setPushNotificationsDeviceToken(e.deviceToken);\r\n }\r\n });\r\n});\r\n \r\nwin.add(btn);\r\nwin.open();\r\n{code}\r\n\r\nExpected behavior: No crash! Everything else is handled internally by Facebook.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-26T13:21:39.000+0000", "updated": "2017-05-26T13:54:04.000+0000" }, { "id": "440092", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:49:16.000+0000", "updated": "2018-08-06T17:49:16.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }