Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6142] style property of notification crashes the app

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionInvalid
Resolution Date2019-02-26T21:58:16.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterRainer Schleevoigt
AssigneeShak Hossain
Created2019-02-19T10:47:31.000+0000
Updated2019-02-26T21:58:16.000+0000

Description

{noformat} const notification = Ti.Android.createNotification({ icon : Ti.Android.R.drawable.ic_dialog_info, contentTitle : 'BBC', contentText : 'Text', largeIcon : Ti.App.Android.R.drawable.logo, channelId : channel.getId(), visibility : Ti.Android.VISIBILITY_PUBLIC, number : 5, // style : Ti.Android.BigPictureStyle, when : new Date().getTime(), contentIntent : Ti.Android.createPendingIntent({ intent : Ti.Android.createIntent({}) }) }); Android.NotificationManager.notify(1, notification); {noformat} This works, but if I add the style property, the the app crashes in notify line: Reason access to null object

Comments

  1. Sharif AbuDarda 2019-02-19

    Hello [~titanium@webmasterei-hamburg.de], Please share a standalone reproducible sample code for us to test the issue. Also, there is no mention of SDK, CLI and device version. Please provide these. Thanks.
  2. Rainer Schleevoigt 2019-02-26

    Hi, Im build the module and app with SDK 7.5.0 for Oreo. This ticket was in relation to JS solution, now I hav esolved with a new module. Ti.AudioNotification.

JSON Source