[AC-6142] style property of notification crashes the app
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Invalid |
Resolution Date | 2019-02-26T21:58:16.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Rainer Schleevoigt |
Assignee | Shak Hossain |
Created | 2019-02-19T10:47:31.000+0000 |
Updated | 2019-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
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.
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.