ClearBlade / clearblade-ios-sdk

Eclipse Public License 1.0
2 stars 2 forks source link

Add support for platform agnostic push notifications #8

Open chadpav opened 9 years ago

chadpav commented 9 years ago

We currently send push notifications through the CBPush class. There are apple specific implementation details in this class and a consumer of the class has to have internal knowledge of it's implementation to get it to work (e.g. the "aps" attributes).

I'd like the CBPush class to support strongly typed properties for standard notification features like "message" and "sound". In some cases maybe a feature is only supported by Apple or Android but this could be clearly documented in the header documentation for that property.

chadpav commented 9 years ago

Example documentation from another platform: Customizing your Notifications

If you want to send more than just a message, you will need to use an NSDictionary to package all of the data. There are some reserved fields that have a special meaning.