Skip to content
This repository was archived by the owner on Nov 24, 2019. It is now read-only.
This repository was archived by the owner on Nov 24, 2019. It is now read-only.

icon property works only partly #60

@AppWerft

Description

@AppWerft

I call:

var notification = {
    requestCode : id + alarm.eta,
    second : alarm.duration,
    icon : Ti.App.Android.R.drawable.alarm_icon,
    contentTitle : 'Labortimer@' + Moment().format('HH:mm'),
    contentText : alarm.label + ': duration=' + formatTime(alarm.duration),
    playSound : true,
    sound : Ti.Filesystem.getResRawDirectory() + sound.toLowerCase()
};
Notify.addAlarmNotification(notification);

On console I see:

{
"requestCode":2861402682,
"second":16,
"icon":2130837603,
"contentTitle":"Labortimer@10:13",
"contentText":"Timer 3: duration=00:00:16",
"playSound":true,
"sound":"android.resource://de.appwerft.eppendorf/raw/note"
}

Issue: I don't see myalarmicon, but a system icon.

NEXUS5 (5.1) Systemicon
NEXUS7 (4.*) it works.
SmartWatch LG it works

Any ideas? I have copied in every drawable folder a PNG. I have also tried to copy PNG in Ressources/android/images/.. folder: same issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions