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:
- Created 5 years ago
- Reactions:1
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Do you really think posting 2,000 lines of mostly unrelated debugging is a good idea?
Any update on this issue? Is there a plan to support it on Android?