[TIMOB-24876] TiAPI: Investigate Remote-Push-Notifications parity across all platforms
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android, iOS, Windows |
Labels | 2019-cl |
Reporter | Hans Knöchel |
Assignee | Unknown |
Created | 2017-06-22T07:35:09.000+0000 |
Updated | 2019-04-02T20:08:12.000+0000 |
Description
Today, we manage push-notifications on iOS via
Ti.Network.registerForPushNotifications
/ Ti.App.iOS.registerUserNotificationSettings
.
On Android, there are several push-modules like [GCMPush](https://github.com/morinel/gcmpush) for GCM and [Ti.Goosh](https://github.com/caffeinalab/ti.goosh) for GCM/FCM. I think nowadays the FCM-technology is preferred.
On Windows, I have no idea if we even support push notifications (do we [~kota]?). The possible capabilities should be investigated as well.
In general, we should work on a centralized API interface that is the same on all platforms. Required API's:
* Check if push supported
* Register / Unregister for push notifications
* Receive push notifications (foreground, background) via events
iOS already has some very platform-specific API's regarding notification-actions, I am not sure if that can even be achieved on the other platforms. Nevertheless, if there are Android / Windows API's that can help to support the above use-cases, it will be a huge parity bump already.
On Windows, yes we have background service related API in
Ti.App.Windows.BackgroundService
: [Windows Background Service Quick Start](http://docs.appcelerator.com/platform/latest/#!/guide/Windows_Background_Service_Quick_Start) that can be used with push notifications. It is very Windows-specific API though and pretty much relying on external native module to integrate with push notifications.