EddyVerbruggen / nativescript-local-notifications

:mailbox: NativeScript plugin to easily schedule local notifications
MIT License
162 stars 57 forks source link

no sound no wake up #189

Open pclokcer opened 4 years ago

pclokcer commented 4 years ago

I am using your plugin like that. pushing notification but no sound no wake up and not showing lock screen. how can ı solve this problem

LocalNotifications.schedule([
                    {
                        id: context.statenotification_id,
                        title: veri.header,
                        // subtitle: "This poster is awesome!",
                        body: veri.body,
                        bigTextStyle: false, // Allow more than 1 row of the 'body' text on Android, but setting this to true denies showing the 'image'
                        color: new Color("green"),
                        //  image: "https://images-na.ssl-images-amazon.com/images/I/61mx-VbrS0L.jpg",
                        //  thumbnail: "https://2.bp.blogspot.com/-H_SZ3nAmNsI/VrJeARpbuSI/AAAAAAAABfc/szsV7_F609k/s200/emoji.jpg",
                        forceShowWhenInForeground: true,
                        channel: "vue-channel",
                        sound: 'default',
                        //  ticker: "Special ticker text for Vue (Android only)",
                        at: new Date(new Date().getTime() + (1 * 1000)), // 5 seconds from now
                        actions: [
                            {
                                id: "yes",
                                type: "button",
                                title: "Sipariş Ver",
                                launch: true
                            }
                        ]
                    }
                ])
                    .then(() => {
                        /* alert({
                          title: "Notification scheduled",
                          message: "ID: 1",
                          okButtonText: "OK, thanks"
                        });*/
                    })
                    .catch(error => console.log("doSchedule error: " + error));