What is the best way to enable Push Notifications
in AOSP
?
- One possible way is to use custom Service which opens a persistent websocket connection.
According to the comment in the answer in this question they used Parse.com PPNS
push service. It is an option but it creates an always on PushService
. I don't think it is battery efficient.
- Other option is to add Google Play Services into the AOSP ROM.
After Android 4.0.3
, devices don't need Google Account set-up to get push notifications. But the devices should have GoogleServicesFramework
to be installed at least.
When we include all Google Apps into the ROM, it enables push notifications. Google Apps package includes lots of Google APKs.
Which ones are required for push notification?
And is it legal to just add Google applications into the AOSP built?