{ "id": "155772", "key": "TIMOB-20578", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-04-25T00:37:10.000+0000", "created": "2016-03-16T12:34:47.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "issuelinks": [ { "id": "51323", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "148259", "key": "TIMOB-18952", "fields": { "summary": "Windows: Implement support for background services (or tiled applications)", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "6", "description": "gh.issue.epic.desc", "name": "Epic", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-06T17:49:20.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "I looked at the parity API list form the nightly builds and I am not able to find any way to receive push notifications to a windows phone app, this is a much needed component to be able to increase usage and alert users of the app state and things to take action against.\r\n\r\n(I was also not able to find any local notifications to use as work around)\r\n\r\nThis is needed in Windows Phone 8.1 and should be compatible with Win 10 mob ..\r\n\r\nMuch appreciated...;)\r\n\r\n", "attachment": [], "flagged": false, "summary": "Windows: Support Notifications sent while in background", "creator": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 624, "state": "closed", "name": "2016 Sprint 09 SDK", "startDate": "2016-04-23T00:39:45.452Z", "endDate": "2016-05-07T00:39:00.000Z", "completeDate": "2016-05-09T03:43:10.279Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "379892", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Similar to http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Android.Notification\r\n\r\nhttps://msdn.microsoft.com/en-us/library/windows/apps/xaml/jj676791.aspx", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-03-16T17:10:32.000+0000", "updated": "2016-03-16T17:12:31.000+0000" }, { "id": "379916", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "quick comment on this. I am talking about push notifications. not the local ones found in android. you should compare it with APN in iOS and GCM in android. ...", "updateAuthor": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-03-16T20:59:44.000+0000", "updated": "2016-03-16T20:59:44.000+0000" }, { "id": "379917", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "so in fact not only as your link as it needs a callback to receive the GCM as well on android.. in iOS it is auto generated in windows I do not know yet... ", "updateAuthor": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-03-16T21:02:18.000+0000", "updated": "2016-03-16T21:02:18.000+0000" }, { "id": "381702", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "So anyone have any update on this for the 5.3.0 release of Windows SDK?\r\n\r\nSome sort of notification system have to be in place, like the local notification OR the push notification..\r\n\r\nThanks", "updateAuthor": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-05T07:01:13.000+0000", "updated": "2016-04-05T07:01:13.000+0000" }, { "id": "381719", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "Or simply it needs to be possible to create native modules with Windows target", "updateAuthor": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-05T09:18:31.000+0000", "updated": "2016-04-05T09:18:31.000+0000" }, { "id": "383106", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/635", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-19T09:20:14.000+0000", "updated": "2016-04-19T09:20:14.000+0000" }, { "id": "383115", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi\r\n\r\nJust a quick note, so this support goal is to be able to create notifications either from local or from push, NOTE that in my case I have to be able to do this from the backgrund service that I am trying to test now, so from my perceptive it feels like I have to create this notification in the native code then.\r\n\r\nOn the other side (TI foreground app) I have to be able to create local notifications and preferably receive push notifications...\r\n\r\nNot sure tat makes sense but anyway...", "updateAuthor": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-19T10:50:40.000+0000", "updated": "2016-04-19T10:50:40.000+0000" }, { "id": "383116", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "I read your docs in the github PR, so if the push indeed works from the app perspective then it resolves \"part\" of the notification need in my background service (I wills till need to make local notifications though) but the over all push can push notification to the app.. this is good, I guess this is not yet merged..", "updateAuthor": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-19T10:55:44.000+0000", "updated": "2016-04-19T10:55:44.000+0000" }, { "id": "383217", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~buder] Do you consider specific Windows API to be used for push notification? Current PR is is only for Windows raw notification but there could be broader alternatives there. Actual use case and Windows API class name (or 3rd party libraries?) would be very helpful to define Titanium background service API spec.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-20T00:08:45.000+0000", "updated": "2016-04-20T00:17:48.000+0000" }, { "id": "383249", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi\r\n\r\nSo I read about raw notifications here : https://msdn.microsoft.com/en-us/library/windows/apps/hh761463.aspx\r\n\r\nwhich sounds like something useful, but as far as I can see it does not create a notification in the top notification bar. Is it correct to assume that in windows, (like in Android) I have to crate a toast notification to alert the user that there is something going on? It sound like it reading the guide above. Please confirm if I am correct? \r\n\r\nIdeally the push notification would create that for us but I know Andorra is not working like that.\r\n\r\nWith your implementation of the push notification I can receive a push in a native callback handler, correct?\r\nThen I can pull HTTP and create a toast notification form there that alerts the user to \"enter\" the app. I take it that a notification in the top bar in Windows Phone 8.1 (and 10) will indeed lead you to the app.\r\n\r\nThis is a doable scenario however if there is NO OTHER way to create notifications in the Ti context maybe you should support toast notifications so that app can create notification in the top bar? I know some apps use this and set a art date and time top alert the user about upcoming notifications for instance. Is the toast notification in windows equivalent to local notification in Android ?\r\n\r\nI hope I was clear here. Is this push notification currently in the nightly builds? I have prepared for it...\r\n\r\nthanks", "updateAuthor": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-20T06:37:12.000+0000", "updated": "2016-04-20T06:37:12.000+0000" }, { "id": "383291", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "What's bad thing for MS docs are that it's very difficult to find valuable content from them :( \r\nI have confirmed that in order to show toast notification, you can use [ToastNotification|https://msdn.microsoft.com/library/windows/apps/br208641] that can be invoked from {{BackgroundServiceTask::Run}}. For more examples check out [ToastNotification Examples |https://msdn.microsoft.com/library/windows/apps/br208641] or [Alarm toast notifications sample|https://code.msdn.microsoft.com/windowsapps/Alarm-toast-notifications-fe81fc74] etc.\r\n\r\n{code:cpp}\r\nvoid BackgroundServiceTask::Run(IBackgroundTaskInstance^ taskInstance)\r\n{\r\n\tconst auto deferral = taskInstance->GetDeferral();\r\n\r\n\tauto toastXml = Windows::UI::Notifications::ToastNotificationManager::GetTemplateContent(Windows::UI::Notifications::ToastTemplateType::ToastText01);\r\n\ttoastXml->GetElementsByTagName(\"text\")->GetAt(0)->InnerText = \"This is toast test\";\r\n\tauto notification = ref new Windows::UI::Notifications::ToastNotification(toastXml);\r\n\tWindows::UI::Notifications::ToastNotificationManager::CreateToastNotifier()->Show(notification);\r\n\r\n\tdeferral->Complete();\r\n}\r\n{code}", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-20T09:12:04.000+0000", "updated": "2016-04-20T09:12:46.000+0000" }, { "id": "383293", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I think PR 635 will be not included in the tonight's nightly build. I have some more things to do for it. maybe ready tomorrow's build.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-20T09:25:42.000+0000", "updated": "2016-04-20T09:25:42.000+0000" }, { "id": "383296", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "Ok got it, thanks, let me know when it is :)", "updateAuthor": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-20T09:37:38.000+0000", "updated": "2016-04-20T09:37:46.000+0000" }, { "id": "383736", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This PR is already merged in master and should be ready in the current nightly build.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-24T10:26:25.000+0000", "updated": "2016-04-24T10:26:25.000+0000" }, { "id": "385526", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi\r\n\r\nI noted the callback native handler you added to support push notifications a while back, and I have had not time to test it, but carting a module with the latest SDK 20160511 there is no extension in the manifest that corresponds to a hook in the module?\r\n\r\nYou specified it like this:\r\n\r\n\r\n \r\n \r\n \r\n \r\n\r\nsimilar to this that DO exist:\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\nAny idea why, can we use \"any\" function? Do we not need to use a hook similar to the time trigger? Or is this something I can add my self without further work on the module structure?? ", "updateAuthor": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-05-12T12:07:01.000+0000", "updated": "2016-05-12T12:07:01.000+0000" }, { "id": "440122", "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:20.000+0000", "updated": "2018-08-06T17:49:20.000+0000" } ], "maxResults": 22, "total": 22, "startAt": 0 } } }