Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20126] Android: Not able to see the multiline notification on the android device

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2018-02-05T20:49:10.000+0000
Affected Version/sn/a
Fix Version/sRelease 7.1.0
ComponentsAndroid
Labelsandroid, pushnotification, ti.cloudpush
ReporterRohan Peshwe
AssigneeGary Mathews
Created2015-11-30T07:24:21.000+0000
Updated2018-05-26T12:04:53.000+0000

Description

I am not able to see the push notification in the multiline format on the android device. I have used the same payload structure that is defined in the documentation [http://docs.appcelerator.com/platform/latest/#!/guide/Subscribing_to_push_notifications-section-37551717_Subscribingtopushnotifications-Parsinganotificationpayload] { "android": { "title": "myApp", "alert": "Here, I want to send the multiline push notification messages to the user for the \n details reports.", "icon": "little_star", "badge": 3, "sound": "door_bell", "vibrate": true, }, }

Attachments

FileDateSize
Screenshot_2015-11-30-12-46-58.png2015-11-30T07:23:28.000+0000715167

Comments

  1. Sharif AbuDarda 2015-11-30

    Hello [~rpeshwe], Appcelerator doesn't have support for multiline push notification. This could be a new feature. Most of the applications at the market doesn't have the feature in them. But Android has a process to [add multiline push notification](http://tips.androidhive.info/2015/04/android-showing-push-notification-in-multiline/) feature. To use the feature in Appcelerator you need to build a custom module for that. See the [doc](http://docs.appcelerator.com/platform/latest/#!/guide/Android_Module_Development_Guide) link. Thanks.
  2. Ashraf Abu 2016-01-11

    To do this, you would need http://developer.android.com/intl/ru/reference/android/app/Notification.BigTextStyle.html. This ticket is a new feature request and this has been resolved with this ticket TIMOB-20066. Resolving this as duplicate as it has been addressed.
  3. Muhammad Qasim 2016-09-01

    @Sharif AbuDarda {quote}Most of the applications at the market doesn't have the feature in them.{quote} I think this feature is included in almost all apps now. Its supported since Android 4.1 or 4.2.
  4. Rohan Peshwe 2016-09-01

    Hi, I have tried the multiline notification on android device after creating build using titanium sdk 5.4.0.GA Still facing the issue while sending multiline notification from GCM server on an Android device. Found that the *TIMOB-20066* issue is related to the *local notification* while I am trying to send the notification from the *server.* Can you please check the multiline notification for notification getting from *server.* As *TIMOB-20066* ticket is for local notification.
  5. Ashraf Abu 2016-09-02

    Ticket reopened to investigate multiline notification for notifications from servers.
  6. Muhammad Qasim 2016-09-19

    Are there any plans to support the BigTextViewStyle in ti.cloudpush? This is a very common and useful feature now and should be implemented without asking!
  7. Pravin 2017-05-10

    Hi, Is it resolved in new SDK ? 6.0.3 ? I have tested on SDK 6.0.0 but issue is still there. Do we have any solution for this ? Regards, Pravin
  8. Valmir Santana 2017-07-04

    Hi! There is any solution to this issue?
  9. Dirlei Dionísio 2017-08-22

    Hi guys, multiline notifications exists since Android 4.1. We now are on Android 8. Is there any plan to support this feature on ti.cloudpush? Not having this feature nowadays is a big disadvantage for those using ArrowDB. This issue is marked as duplicated but it's a mistake. #TIMOB-20066 is about Local Notifications but the requested feature here is about Remote Notifications. It would be very appreciated if we could use this so common feature on Android through Appcelerator/Axway services.
  10. Hans Knöchel 2017-10-17

    Let's talk about it! If this is an Android issue, we should be able to fix this in the SDK. [~gmathews] [~ybanev] thoughts? *EDIT*: PR (poc): https://github.com/appcelerator/aps_sdk/pull/302 Example:
        {
          "android": {
            "title": "myApp",
            "alert": "Here, I want to send the multiline push notification messages to the user for the \n details reports.",
            "style": {
                "bigContentTitle": "myApp",
                "bigText": "Here, I want to send the multiline push notification messages to the user for the \n details reports.",
                "summaryText": "Here, I want to send the multiline push notification messages",
            }
          }
        }
        
  11. Dirlei Dionísio 2017-10-24

    Can anyone at Appcelerator please say if this will be supported some day? Or... can ti.cloudpush be open sourced?
  12. Hans Knöchel 2018-02-05

    Hey everyone! The related PR's just have been merged and will be available via dashboard later this week.
  13. Dirlei Dionísio 2018-02-26

    Thanks [~hknoechel] ! How about showing a custom image (not icon) in the push? Will it be possible?
  14. Hans Knöchel 2018-02-26

    [~dirleidionisio] I have no idea. That is completely different feature request.
  15. Dirlei Dionísio 2018-02-26

    [~hknoechel] Any chance of open source ti.cloudpush so I can help to implementing it?
  16. Lokesh Choudhary 2018-03-14

    Verified the fix in SDK 7.1.0.v20180314133955 & 7.2.0.v20180314132221. Closing. Studio Ver: 5.0.0.201712081732 OS Ver: 10.13.2 Xcode Ver: Xcode 9.2 Appc NPM: 4.2.12 Appc CLI: 7.0.2 Daemon Ver: 1.0.1 Ti CLI Ver: 5.0.14 Alloy Ver: 1.11.0 Node Ver: 8.9.1 NPM Ver: 5.5.1 Java Ver: 1.8.0_101 Devices: ⇨ google Nexus 6P --- Android 8.0.0 ⇨ google Nexus 5 --- Android 6.0.1
  17. Dirlei Dionísio 2018-03-19

    Good job, guys! In order to use this feature I need to know: how can I send multiline notifications using Appc dashboard or API? The docs are not updated.
  18. Beau Gibson 2018-03-23

    Updated to 7.2.0.v20180314132221 but the notifications still get trimmed after 1 line. Is this something we need to set when registering or when sending the push?
  19. (deactived) Brian Immel 2018-04-09

    [~aislam], I added your sample payload example to https://wiki.appcelerator.org/display/guides2/Subscribing+to+push+notifications. It will be published on the next doc push (after April 19th?) or soon if you think it warrants my time to do so.
  20. Hans Knöchel 2018-05-26

    [~dirleidionisio] In case you did not find it out already, the docs have recently been updated to reflect an example, see [this guide](https://docs.appcelerator.com/platform/latest/#!/guide/Subscribing_to_push_notifications-section-src-37551717_Subscribingtopushnotifications-Parsinganotificationpayload) and "Sample payload sent push notification in the multiline format on an Android device" for details!
  21. Dirlei Dionísio 2018-05-26

    Thank you Hans, I'll check it soon.

JSON Source