[TIMOB-20126] Android: Not able to see the multiline notification on the android device
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-02-05T20:49:10.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 7.1.0 |
Components | Android |
Labels | android, pushnotification, ti.cloudpush |
Reporter | Rohan Peshwe |
Assignee | Gary Mathews |
Created | 2015-11-30T07:24:21.000+0000 |
Updated | 2018-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
File | Date | Size |
---|---|---|
Screenshot_2015-11-30-12-46-58.png | 2015-11-30T07:23:28.000+0000 | 715167 |
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.
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.
@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.
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.
Ticket reopened to investigate multiline notification for notifications from servers.
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!
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
Hi! There is any solution to this issue?
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.
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:
Can anyone at Appcelerator please say if this will be supported some day? Or... can ti.cloudpush be open sourced?
Hey everyone! The related PR's just have been merged and will be available via dashboard later this week.
Thanks [~hknoechel] ! How about showing a custom image (not icon) in the push? Will it be possible?
[~dirleidionisio] I have no idea. That is completely different feature request.
[~hknoechel] Any chance of open source ti.cloudpush so I can help to implementing it?
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
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.
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?
[~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.
[~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!
Thank you Hans, I'll check it soon.