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



Notification Window screen shot



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.










share|improve this question


























    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



    Notification Window screen shot



    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.










    share|improve this question
























      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



      Notification Window screen shot



      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.










      share|improve this question













      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



      Notification Window screen shot



      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 17 '16 at 3:29









      Pawan Joshi

      94611435




      94611435
























          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.






          share|improve this answer





















          • 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


















          up vote
          1
          down vote













          Cannot be done. iOS only lets you supply the content, not the style






          share|improve this answer




























            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=objcenter image description here






            share|improve this answer





















              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              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

























              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.






              share|improve this answer





















              • 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















              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.






              share|improve this answer





















              • 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













              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.






              share|improve this answer












              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.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              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


















              • 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












              up vote
              1
              down vote













              Cannot be done. iOS only lets you supply the content, not the style






              share|improve this answer

























                up vote
                1
                down vote













                Cannot be done. iOS only lets you supply the content, not the style






                share|improve this answer























                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  Cannot be done. iOS only lets you supply the content, not the style






                  share|improve this answer












                  Cannot be done. iOS only lets you supply the content, not the style







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 17 '16 at 3:37









                  Kyle Redfearn

                  1,410927




                  1,410927






















                      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=objcenter image description here






                      share|improve this answer

























                        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=objcenter image description here






                        share|improve this answer























                          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=objcenter image description here






                          share|improve this answer












                          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=objcenter image description here







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 21 at 18:14









                          Akbar Khan

                          3421312




                          3421312






























                              draft saved

                              draft discarded




















































                              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.




                              draft saved


                              draft discarded














                              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





















































                              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







                              Popular posts from this blog

                              A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

                              Calculate evaluation metrics using cross_val_predict sklearn

                              Insert data from modal to MySQL (multiple modal on website)