[英]Add App Icon on lower left corner in lock screen
我已在设备上安装了应用程序,当它进入特定区域时,我想在锁定屏幕的左下角显示它,但我不想使用iBeacon,有没有办法使用存折卡来添加位置和日期/时间到pass.json文件,并从存折卡中读取该位置和时间,并在iPhone的锁定屏幕上的左下角显示该应用程序,具体取决于存折卡中的位置或时间?
The launch icon you see on the lock screen is put there CoreLocation
launches an app into the background based on iBeacon or Geofence detection. 您在锁定屏幕上看到的启动图标将放置在此位置, CoreLocation
基于iBeacon或Geofence检测在后台启动应用程序。 While you said you don't want to use iBeacons with your app, you can still accomplish the same thing with CoreLocation Geofences. 虽然您说不想在应用程序中使用iBeacons,但仍可以使用CoreLocation Geofences完成相同的操作。 The way it would work is that you would register the geofences with your app, and then when you cross the geofence with your app in the background, the icon will appear on the lock screen. 它的工作方式是将地理围栏注册到您的应用程序,然后在背景中将地理围栏与应用程序交叉时,该图标将出现在锁定屏幕上。 Tapping on the icon launches your app. 轻击图标可启动您的应用程序。
You can find a tutorial on setting up Geofences with your app here: http://www.raywenderlich.com/95014/geofencing-ios-swift 您可以在此处找到有关使用应用程序设置地理栅栏的教程: http : //www.raywenderlich.com/95014/geofencing-ios-swift
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.