首页 > 解决方案 > Xamarin.Forms:Plugin.Geofence 不显示通知

问题描述

我正在为 Xamarin Forms 使用 https://github.com/CrossGeeks/GeofencePlugin nuget 来尝试一些地理围栏。一切似乎都正常,但进入/停留/退出时没有显示任何通知。尝试了通知插件,它们发送没有问题。位置似乎很好,它在地理围栏内,但仍然没有。

        CrossGeofence.Current.StartMonitoring(new GeofenceCircularRegion("My Region", 52.922603, -1.498039, 300)
        {

            //To get notified if user stays in region for at least 5 minutes
            NotifyOnStay = true,
            NotifyOnEntry = true,
            NotifyOnExit = true,
            ShowNotification = true,
            ShowEntryNotification = true,
            ShowExitNotification = true,
            ShowStayNotification = true,
            Persistent = true,
            NotificationStayMessage = "stay message!",
            NotificationEntryMessage = "entry message!",
            NotificationExitMessage = "exit message!",
            StayedInThresholdDuration = TimeSpan.FromSeconds(10),

        });

标签: c#xamarin.formsgeofencing

解决方案


推荐阅读