0
我有点困惑,如果我必须这样做,或系统:iOS在后台发生什么事情时会显示通知?
使用iBeacon有一个方法,当应用程序在后台或关闭时触发。 在那里,我想写的代码将显示用户在iPhone主屏幕上的推送通知,让他知道它。
我会怎么做这么简单的事情?
//happens in background when user inside a place
- (void)locationManager:(CLLocationManager *)manager didEnterRegion:(CLRegion *)region {
[self.locationManager startRangingBeaconsInRegion:self.beaconRegion];
NSLog(@"***********************ENTER");
//here show notification !
安排本地通知。 – nhgrif 2014-11-23 16:22:51
怎么样?我知道它很简单,我只是无法在google上找到它。 – Curnelious 2014-11-23 16:27:39