草庐IT

alert_notification

全部标签

ios - react native AlertIOS 错误 : tried to display alert view but there is no application window

我正在尝试使用AlertIOS显示一条消息,但出现以下错误。警告框的代码嵌套在View和可触摸的突出显示下方。如果AlertIOS组件嵌套在其他组件中,调用它是否会出现问题?varTabOption=React.createClass({deleteConnection:function(){AlertIOS.alert('ConnectionRemoved','Wearenolongerhelpingyouonthisaccount',[{text:'?'}]);});render:function(){return(Disconnect}});varstyles=StyleShee

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

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

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 - 在具有透明背景的 Alert ViewController 中心添加图像

如何在警报ViewController的透明背景下在警报ViewController的中心显示图像。我写了下面的代码。letimage=UIImage(named:"ic_no_data")letimageView=UIImageView(frame:CGRectMake(220,10,40,40)letalertMessage=UIAlertController(title:"image",message:"",preferredStyle:.Alert)letbackView=alertMessage.view.subviews.last?.subviews.lastbackVie

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

iphone - 本地通知 : repeat "permanently" with arbitrary alert message and incremental badge

我正在从事警报项目,该项目每天提醒不同的消息并每天增加角标(Badge)。我想要做的是如下所示。第1天:提醒“1月1日”,角标(Badge)=1第2天:提醒“1月2日”,角标(Badge)=2第3天:提醒“1月3日”,角标(Badge)=3第4天:提醒“1月4日”,角标(Badge)=4::::第365天:提醒“12月31日”,角标(Badge)=365localnotification.repeatInterval=NSDayCalendarUnit可以每天重复,但是只会重复注册的静态通知。即,每次弹出通知时,始终显示相同的“1月1日”警报消息,角标(Badge)将保持“1”。我可以

Ios Alert on first launch 设置通知

我使用Dreamweaver/phonegap创建了一个摄影任务生成器应用程序,并在xcode中进行了一些最后的润色。我已经设置了一个设置包,用户可以在其中设置每日提醒。它预设为关闭,因为我不想惹恼不想要它的人。因为我是使用Dreamweaver完成此操作的,所以我找不到访问设置包的方法,因此用户必须转到设置,轻按开关,然后重新启动应用程序才能使其生效。我想做的是让应用程序在应用程序首次启动时询问他们是否愿意设置每日提醒。如果他们点击是,它应该将提醒设置设置为开/是,如果没有,它应该继续使用默认设置为否。如果我能有一个“稍后再说”按钮,那就更棒了。我不擅长编程,我做了大量的工作才能让它