You can add title to iOS push notification as of iOS 8.2:
#push #notification #ios
A short string describing the purpose of the notification. Apple Watch displays this string as part of the notification interface. This string is displayed only briefly and should be crafted so that it can be understood quickly. This key was added in iOS 8.2.
#push #notification #ios
OneSignal - free multiplatform push notification service
Send 100% FREE push notifications to Android, iOS, Web by their completely free SDKs on
OneSignal
. #OneSignal is multiplatform push notification service that you just interact with it using API calls in JSON format. It has a thorough documentation for SDKs and Server API.* BE AWARE THAT use
OneSignal
in case your user's privacy does not matter to you! They have mentioned in their privacy policy that they sell this information!!! All device locations, user email addresses and all the other sensetive data will be collected by OneSignal
.#push_notification #push #ios #android #web #notification #one_signal
Customize
- open
- add
- add
- add the below function to line 51:
Ok done in payload. Push now accept subtitle for
Open
OK DONE :)
Restart your
#pushd #ios #title #subtitle #coffee_script #push #notification
pushd
server to add a new field like subtitle
or title
for iOS
push notification payload. As you may know ios
payload is like below:{
"aps":{
"alert":{
"body":"New flight is booked",
"title":"Boarding at 20:05",
"subtitle": ""Yay!
},
"category":"openFlightCategory"
},
}
pushd
by default does not support subtitle
in the payload, to add this do the following:- open
/usr/local/pushdcustomized/lib/payload.coffee
file- add
@subtitle = {}
to line 14- add
when 'subtitle' then @subtitle.default = value
to line 28- add the below function to line 51:
localizedMessage: (lang) ->
@localized('subtitle', lang)
Ok done in payload. Push now accept subtitle for
iOS
, but there is one step left. You need to send subtitle to iOS
device.Open
/usr/local/pushdcustomized/lib/pushservices/apns.coffee
file and go to line note.alert = alert
(line 44), and change it to:note.alert = {'title':payload.title.default, 'body':payload.msg.default, 'subtitle': payload.subtitle.default}
OK DONE :)
Restart your
pushd
server and enjoy title
and subtitle
in your iOS
push notifications.#pushd #ios #title #subtitle #coffee_script #push #notification