Can i customise push notification appearance in iOS?
up vote
1
down vote
favorite
I can't seems to find and control over push notification appearance. Is it so, or i am just missing something.
Have a look at the following image
what i actually want to achieve is to put NSTextAttachment in these notification texts.
As far as of now, i have gathered that this is something which can not be achieved because we don't have control over how iOS displays Push Notifications.
But i just want to be absolutely sure about this.
ios objective-c swift push-notification nstextattachment
add a comment |
up vote
1
down vote
favorite
I can't seems to find and control over push notification appearance. Is it so, or i am just missing something.
Have a look at the following image
what i actually want to achieve is to put NSTextAttachment in these notification texts.
As far as of now, i have gathered that this is something which can not be achieved because we don't have control over how iOS displays Push Notifications.
But i just want to be absolutely sure about this.
ios objective-c swift push-notification nstextattachment
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I can't seems to find and control over push notification appearance. Is it so, or i am just missing something.
Have a look at the following image
what i actually want to achieve is to put NSTextAttachment in these notification texts.
As far as of now, i have gathered that this is something which can not be achieved because we don't have control over how iOS displays Push Notifications.
But i just want to be absolutely sure about this.
ios objective-c swift push-notification nstextattachment
I can't seems to find and control over push notification appearance. Is it so, or i am just missing something.
Have a look at the following image
what i actually want to achieve is to put NSTextAttachment in these notification texts.
As far as of now, i have gathered that this is something which can not be achieved because we don't have control over how iOS displays Push Notifications.
But i just want to be absolutely sure about this.
ios objective-c swift push-notification nstextattachment
ios objective-c swift push-notification nstextattachment
asked Feb 17 '16 at 3:29
Pawan Joshi
94611435
94611435
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
up vote
2
down vote
accepted
iOS will parse notification payload for "Alert", "Badge", "Sound" & "Content-Available" and as if it got these param, it will show up the notification and ignore remaining parameters.
You can add up other parameters in payload, but that you can use in your app only not in notification tray i.e. you can not manipulate or say customise/style push notification view in notification tray because iOS do not allow to do so.
Interactive Notifications: you can add action buttons or textfield to your notification those iOS have provided provision for, but as i said above, you cannot customise/style push notification .
CONCLUSION: which specifically in your case, you cannot add NSTextAttachment.
You can customise the sound of the notification tho, through the app and not through the server (payload stays default, 'sound=default'), correct me if i'm wrong, but the workaround is to pass a silent notification and then raise a local notification with the data you want, as far as I know theres no other way.
– XcodeNOOB
Feb 17 '16 at 9:45
add a comment |
up vote
1
down vote
Cannot be done. iOS only lets you supply the content, not the style
add a comment |
up vote
1
down vote
According to this you article you can change it, I am not sure Apple added this provision recently or it existed before this post https://developer.apple.com/documentation/usernotificationsui/customizing_the_appearance_of_notifications?language=objc
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
iOS will parse notification payload for "Alert", "Badge", "Sound" & "Content-Available" and as if it got these param, it will show up the notification and ignore remaining parameters.
You can add up other parameters in payload, but that you can use in your app only not in notification tray i.e. you can not manipulate or say customise/style push notification view in notification tray because iOS do not allow to do so.
Interactive Notifications: you can add action buttons or textfield to your notification those iOS have provided provision for, but as i said above, you cannot customise/style push notification .
CONCLUSION: which specifically in your case, you cannot add NSTextAttachment.
You can customise the sound of the notification tho, through the app and not through the server (payload stays default, 'sound=default'), correct me if i'm wrong, but the workaround is to pass a silent notification and then raise a local notification with the data you want, as far as I know theres no other way.
– XcodeNOOB
Feb 17 '16 at 9:45
add a comment |
up vote
2
down vote
accepted
iOS will parse notification payload for "Alert", "Badge", "Sound" & "Content-Available" and as if it got these param, it will show up the notification and ignore remaining parameters.
You can add up other parameters in payload, but that you can use in your app only not in notification tray i.e. you can not manipulate or say customise/style push notification view in notification tray because iOS do not allow to do so.
Interactive Notifications: you can add action buttons or textfield to your notification those iOS have provided provision for, but as i said above, you cannot customise/style push notification .
CONCLUSION: which specifically in your case, you cannot add NSTextAttachment.
You can customise the sound of the notification tho, through the app and not through the server (payload stays default, 'sound=default'), correct me if i'm wrong, but the workaround is to pass a silent notification and then raise a local notification with the data you want, as far as I know theres no other way.
– XcodeNOOB
Feb 17 '16 at 9:45
add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
iOS will parse notification payload for "Alert", "Badge", "Sound" & "Content-Available" and as if it got these param, it will show up the notification and ignore remaining parameters.
You can add up other parameters in payload, but that you can use in your app only not in notification tray i.e. you can not manipulate or say customise/style push notification view in notification tray because iOS do not allow to do so.
Interactive Notifications: you can add action buttons or textfield to your notification those iOS have provided provision for, but as i said above, you cannot customise/style push notification .
CONCLUSION: which specifically in your case, you cannot add NSTextAttachment.
iOS will parse notification payload for "Alert", "Badge", "Sound" & "Content-Available" and as if it got these param, it will show up the notification and ignore remaining parameters.
You can add up other parameters in payload, but that you can use in your app only not in notification tray i.e. you can not manipulate or say customise/style push notification view in notification tray because iOS do not allow to do so.
Interactive Notifications: you can add action buttons or textfield to your notification those iOS have provided provision for, but as i said above, you cannot customise/style push notification .
CONCLUSION: which specifically in your case, you cannot add NSTextAttachment.
answered Feb 17 '16 at 3:50
rahulchona
477410
477410
You can customise the sound of the notification tho, through the app and not through the server (payload stays default, 'sound=default'), correct me if i'm wrong, but the workaround is to pass a silent notification and then raise a local notification with the data you want, as far as I know theres no other way.
– XcodeNOOB
Feb 17 '16 at 9:45
add a comment |
You can customise the sound of the notification tho, through the app and not through the server (payload stays default, 'sound=default'), correct me if i'm wrong, but the workaround is to pass a silent notification and then raise a local notification with the data you want, as far as I know theres no other way.
– XcodeNOOB
Feb 17 '16 at 9:45
You can customise the sound of the notification tho, through the app and not through the server (payload stays default, 'sound=default'), correct me if i'm wrong, but the workaround is to pass a silent notification and then raise a local notification with the data you want, as far as I know theres no other way.
– XcodeNOOB
Feb 17 '16 at 9:45
You can customise the sound of the notification tho, through the app and not through the server (payload stays default, 'sound=default'), correct me if i'm wrong, but the workaround is to pass a silent notification and then raise a local notification with the data you want, as far as I know theres no other way.
– XcodeNOOB
Feb 17 '16 at 9:45
add a comment |
up vote
1
down vote
Cannot be done. iOS only lets you supply the content, not the style
add a comment |
up vote
1
down vote
Cannot be done. iOS only lets you supply the content, not the style
add a comment |
up vote
1
down vote
up vote
1
down vote
Cannot be done. iOS only lets you supply the content, not the style
Cannot be done. iOS only lets you supply the content, not the style
answered Feb 17 '16 at 3:37
Kyle Redfearn
1,410927
1,410927
add a comment |
add a comment |
up vote
1
down vote
According to this you article you can change it, I am not sure Apple added this provision recently or it existed before this post https://developer.apple.com/documentation/usernotificationsui/customizing_the_appearance_of_notifications?language=objc
add a comment |
up vote
1
down vote
According to this you article you can change it, I am not sure Apple added this provision recently or it existed before this post https://developer.apple.com/documentation/usernotificationsui/customizing_the_appearance_of_notifications?language=objc
add a comment |
up vote
1
down vote
up vote
1
down vote
According to this you article you can change it, I am not sure Apple added this provision recently or it existed before this post https://developer.apple.com/documentation/usernotificationsui/customizing_the_appearance_of_notifications?language=objc
According to this you article you can change it, I am not sure Apple added this provision recently or it existed before this post https://developer.apple.com/documentation/usernotificationsui/customizing_the_appearance_of_notifications?language=objc
answered Nov 21 at 18:14
Akbar Khan
3421312
3421312
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f35447352%2fcan-i-customise-push-notification-appearance-in-ios%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown