Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70432

Does `priority` for local notifications work?

$
0
0

@m52go wrote:

Hi, I’m trying to change priority for my local notifications (need low priority, don’t care about Oreo at the moment). According to the Android API, values range from -2 to 2.

I’ve tried all those values for priority and notice no difference in the priority of notifications.

Does this setting work? I noticed the GitHub page for the plugin says it’s not compatible with Ionic, but Ionic’s page lists priority as a part of its ILocalNotification spec.

Am I doing something wrong? Here’s the command I’m running.

    this.localNotifications.cancel(36731).then(() => {
        this.localNotifications.schedule({
            id: 36731,
            title: "Priority -1",
            text: "Test notification",
            ongoing: false,
            priority: -1,
            sound: null,
            smallIcon: 'res://ic_stat_notify.png',
            icon: 'res://bc_placeholder.png'
        });
    });

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70432

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>