Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no sound no wake up #189

Open
pclokcer opened this issue May 26, 2020 · 0 comments
Open

no sound no wake up #189

pclokcer opened this issue May 26, 2020 · 0 comments

Comments

@pclokcer
Copy link

pclokcer commented May 26, 2020

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));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant