草庐IT

change-notification

全部标签

ios - Xcode 7 : Cannot add Push Notification entitlement under Capabilities

我们正在将我们的应用程序升级到下一个版本,我们正在尝试添加推送通知权利,但我们收到以下错误。**标识符为“com.xxx.xxx”的AppID不可用。请输入不同的字符串。ScreenshotofCapabilitiesTabinXcode此外,在“常规”选项卡上现在显示没有有效的配置文件允许特定功能:功能:推送...修复问题按钮都没有帮助。请帮忙。ScreenshotofvalidProvisioningProfile 最佳答案 检查您是否已从Apple开发人员处创建了SSL证书网站。您还必须在证书中添加推送通知服务。完成上述步骤后

ios - swift 3 : Understand syntax change for UITableViewDataSource method

我对Swift3函数调用有一些疑问。下面是一个例子。老swift:functableView(tableView:UITableView!,cellForRowAtIndexPathindexPath:NSIndexPath!)->UITableViewCellswift3:functableView(_tableView:UITableView,cellForRowAtindexPath:IndexPath)->UITableViewCell上面的语法没问题。但是现在Xcode向我显示错误并要求我执行以下操作:@objc(tableView:cellForRowAtIndexPath

ios - swift 3 : UITableView row height changes due to UINavigationViewController

我有一个嵌入到UINavigationController中的UIViewController。我的UIViewController包含一个UITableView,它有两种类型的单元格:单元格1(第一个单元格)的高度=250,单元格2的高度=85。开始时一切正常但是当我使用self.navigationController?.pushViewController(vc,animated:true)粘贴一个单元格以显示其详细信息时,然后当我返回到parentViewController(包含UITableView)cell1获得了cell2的高度。在Storyboard中,我将表格的ro

iOS 10 : How to repeat local notification once fired on particular date?

我想在特定日期创建一个本地通知,然后在该本地通知被触发后每30秒重复一次。这是我的代码:letcalendar=Calendar(identifier:.gregorian)letcomponents=calendar.dateComponents(in:.current,from:date)letnewComponents=DateComponents(calendar:calendar,timeZone:.current,month:components.month,day:components.day,hour:components.hour,minute:components.

android - 使用 davibennun/laravel-push-notification 包的 Laravel 推送通知

我正在使用Laravel5.2通过davibennun/laravel-push-notification包向我的IOS应用程序发送推送通知当我尝试发送推送通知时出现以下错误Apns.php第57行中的AdapterException:证书/path/to/certificate.pem不存在我已经给出了证书的绝对路径。但是,它不起作用'appNameIOS'=>array('environment'=>'development','certificate'=>app_path().'/Certificates_d.pem','passPhrase'=>'password','serv

iOS推送通知: How does an app get notified about a push notification,处于事件状态时?

我有一个应用程序在事件状态下运行。突然收到推送通知,应用程序如何收到通知,如何处理? 最佳答案 您可以在appledocumentation中阅读相关内容.您需要在AppDelegate中使用didReceiveNotificationRequest:withContentHandler:。之后,您可以向用户显示通知。如果您想在事件状态下显示通知,您可以在应用程序中显示警报或使用系统横幅。 关于iOS推送通知:Howdoesanappgetnotifiedaboutapushnotifi

iOS 10.3 到 iOS 11 升级 : User stop receiving silent push notifications

我有很多用户提示说,当他们从iOS10.3.3迁移到昨天发布的iOS11时,他们停止接收静默推送通知。需要注意的是,如果我已经要求用户注册推送通知,我在NSUSerDefaults中有一个设置。我这样做:[[UIApplicationsharedApplication]registerUserNotificationSettings:settings];仅当用户之前没有被询问过。现在,如果用户在使用iOS10.3.3时已经注册了通知,并升级到iOS11,代码registerUserNotificationSettings:settings将永远不会被调用,直到他重新安装。这可能是个问题

ios - 境界 cocoa : How to add notification inside other notification block

在我的应用程序中,我注册了一个通知block,它本身必须注册另一个通知block。notificationToken=[self.appState.currentProjectaddNotificationBlock:^(BOOLdeleted,NSArray*changes,NSError*error){if(deleted){NSLog(@"Theobjectwasdeleted.");}elseif(error){NSLog(@"Anerroroccurred:%@",error);}else{boolfilterChanged=false;for(RLMPropertyChan

objective-c - TTLauncherItem : change badge immediately (or: how to refresh TTLauncherView)

我有一个TTLauncherView和一些TTLauncherItems。这些显示角标(Badge),代表来自网络的消息。我在viewWillAppear:中设置了角标(Badge),因此如果我切换到另一个View然后返回,则会显示正确的角标(Badge)。但是我想在收到消息后立即更新角标(Badge)。在TTLauncherView上调用setNeedsDisplay没有帮助?如何刷新TTLauncherView?在我的MessageReceiver类中,我这样做:TTNavigator*navigator=[TTNavigatornavigator];[(OverviewContr

iphone - iOS Significant Location Change 是否应该在重新启动*锁定*手机后唤醒我的应用程序?

我正在构建一个使用significantchangeAPI的应用。一切正常,除非在非常特殊的情况下:如果用户的手机被锁定,并且用户重启了手机,那么SignificantLocationChangeAPI将在前几分钟唤醒手机并调用-(void)locationManager:(CLLocationManager*)managerdidUpdateLocations:(NSArray*)locations一切正常,但此时,如果用户尚未解锁他们的手机,重大位置更改将不再尝试唤醒应用程序,即使我随后解锁手机。本质上,重大位置变化监控被关闭。请注意,如果我在SLC唤醒我的应用程序之前解锁(并重新