question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Location trigger not working on android

See original GitHub issue
  • Plugin version: 0.9.0-beta.2
  • Platform: android
  • OS version: 7.1.2
  • Device manufacturer / model: Xiaomi Redmi 4x
  • Cordova version (cordova -v): 8.0.0
  • Cordova platform version (cordova platform ls): 7.0.0

Expected Behavior

Set notification should trigger when the trigger conditions are met

Actual Behavior

Location-based scheduled notification triggers as soon as they are set even when the trigger conditions are not met.

Context

I was trying to schedule a notification to trigger on the entry in a specific area specified by center and radius.

$("#setnotification").click(function (){
            var x = $("#xcor").val();
            var y = $("#ycor").val();
            alert('x: '+x+' y: '+y);
            var tig = { type: 'location', center: [x , y], radius: 25, notifyOnEntry: true };            
            cordova.plugins.notification.local.schedule({
                title: 'Welcome to' + x + ' ' + y,
                trigger: { 
                    type: 'location', 
                    center: [x , y], 
                    radius: 25, 
                    notifyOnEntry: true 
                }
            });
        });

Debug logs

sorry, learning :P
[debug.txt](https://github.com/katzer/cordova-plugin-local-notifications/files/1956004/debug.txt)

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
rwillettcommented, Apr 27, 2018

Do you really think posting 2,000 lines of mostly unrelated debugging is a good idea?

0reactions
attila-berkicommented, Oct 10, 2019

Any update on this issue? Is there a plan to support it on Android?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Location service information and troubleshooting
If you are having trouble with an Applet using the Location service, the issue likely stems from your device settings. Android devices ...
Read more >
IFTTT location trigger - Sequematic
Sometimes the IFTTT location trigger can be unreliable due to the battery settings on your mobile device. This page takes you through some...
Read more >
My Geofences aren't working on Android - Simple In/Out
Go to your device's Settings, navigate to your Location Settings. Make sure that your phone's Location is turned on and also in High...
Read more >
IFTTT Functions based off location not working? : r/lifx - Reddit
I've set up a very basic lights-on/lights-off based off of location settings. I typed my address into the IFTTT app (Android) and it...
Read more >
Having issues with location updates and zone triggers
Below is a list of common issues and troubleshooting advice to address them. For more support please look at the more help page....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found