草庐IT

dismissed_notifications

全部标签

java - 如何从 (Java) Date 对象中获取 Expiry 字段以发送到 Apple Push Notification Services?

任何人都可以阐明增强型通知格式(用于发送到Apple推送通知服务)的到期字段中的4个字节是什么意思,就像使用Java与APNS服务器通信一样?比如说,如果我准备Date对象,我如何将它变成发送到APNS所需的4个字节? 最佳答案 APNS文档指出:Expiry—AfixedUNIXepochdateexpressedinseconds(UTC)thatidentifieswhenthenotificationisnolongervalidandcanbediscarded.Theexpiryvalueshouldbeinnetwor

ios - Apple Push Notification Service 发送重复通知

我有一个iPhone应用程序可以从ApplePushNotificationService接收通知。我正在使用(EasyAPNSforPHP)使用每15分钟运行一次的Cron作业来推送通知。我有大约400台注册设备正在使用我的应用程序。问题:当我想向我的用户发送新通知时,他们会多次收到通知,而且总是一样。我不知道为什么Apple会多次发送相同的通知(比如5或6次)一些额外的信息:EasyAPNS的工作原理是一次获取100条消息(如一批),所以我猜将400条消息发送给我的所有用户需要1小时。在我的apns_messages表中,消息对于每个设备只有一个条目,因此理论上不存在重复消息。似乎

ios - PubNub : Route to push notification service even if device is in the foreground

我想知道是否可以使用PubNub将消息路由为推送通知,即使应用程序在前台运行也是如此?我能想到的一种方法是:处理需要首先发生的任何特定路由和事件。检查消息的推送注释部分并发送localdevicenotification.或者,可以在此处完成任何自定义UI等。 最佳答案 PubNub确实在应用程序处于前台时发送推送通知。事实上,PubNub(移动推送通知服务器)并不知道设备是在前台、后台还是根本没有运行。因此推送通知总是以任何一种方式发送到设备。请参阅以下PubNub开发人员社区文章,SendingAPNSandGCMMessage

android - 手机间隙 : local notification repeat every Sunday of the week?

我正在尝试在我的项目中实现Phonegap本地通知。我正在使用这个插件:de.appplant.cordova.plugin.local-notification-custom我已经安装了插件并进行了测试,它工作正常。我用这段代码测试了它,它工作正常:cordova.plugins.notification.local.schedule({id:1,title:'Iwillbotheryoueveryminute',text:'..untilyoucancelallnotifications',sound:null,every:'minute',autoClear:false,at:n

ios - 在 App-Code 中注册 Apple Push Notification

我写了一个iPad应用程序,它通过apns接收远程推送通知。该应用程序审查通知并正确处理它们。在AppDelegate.mi中调用:registerForRemoteNotificationTypes:我还有:application:didRegisterForRemoteNotificationsWithDeviceToken:设置和所有工作就像一个魅力。在委托(delegate)中,我构建了一个指向服务器上注册脚本的url。Delegate被调用,这导致调用url在我的服务器应用程序中注册设备等以发送推送通知。但是!如果用户是第一次启动应用程序,那么到目前为止他还没有设置凭据。该应

iOS : No Notification Received from Facebook App Request

我必须在我的应用程序上集成应用程序请求,但它似乎不起作用。我搜索了一下,找不到明确的答案。一些报道的回复说可以在FacebookAppCenter中找到请求。但我没有收到任何请求,也没有收到通知。我正在使用FacebookSDKforiOSv3.8发送请求。没有错误,有请求,总是成功,但仍然没有通知。这是我用来发送请求的代码。-(void)sendAppInvite:(NSString*)message{NSMutableDictionary*params=[NSMutableDictionarydictionaryWithObjectsAndKeys:@"app_non_users"

ios - 如何查看 "Ask for push notifications"权限提示是否被点击

如何检查用户是否以及何时对此View执行操作?我想这样做:ifnotificationviewclosed{dosomething}但是我想不出一个合适的方法来检查这个。这是我的代码:funcSetupPushNotifications(){//RegisterforPushNotiticationsvaruserNotificationTypes:UIUserNotificationType=(UIUserNotificationType.Alert|UIUserNotificationType.Badge|UIUserNotificationType.Sound)ifUIAppli

ios - Local Notification 什么时候EnterRegion?

我有以下代码,在应用程序终止时可以完美运行。-(void)beaconManager:(id)managerdidEnterRegion:(CLBeaconRegion*)region{UILocalNotification*notification=[UILocalNotificationnew];notification.alertBody=@"TESTNOTIFICATION";notification.soundName=UILocalNotificationDefaultSoundName;[[UIApplicationsharedApplication]presentLoc

iphone - iOS 开发 : Push notifications prevent my local notifications from firing

我有一个闹钟应用程序,该应用程序设计为在前台运行时以特定方式运行,并且它会收到由我的应用程序安排的本地通知。当用户设置闹钟时,我的应用会创建一个本地通知。当该本地通知触发时,它会调用didReceiveLocalNotification方法来提醒用户。问题是,如果我的应用程序在前台运行并且推送通知来自另一个应用程序,那么它会显示模态推送通知View,这会阻止我的应用程序在本地通知触发时提醒用户。一旦我关闭推送通知模态视图,我的应用程序就会触发本地通知。有没有解决的办法?我之所以问,是因为如果我的应用程序在用户安排它触发时没有触发警报,那么它就有点违背了设置警报的全部目的。非常感谢您的智

苹果手机SDK : Local notifications limitations

LocalandPushNotificationProgrammingGuide状态:Eachapplicationonadeviceislimitedtothesoonest-firing64scheduledlocalnotifications.Theoperatingsystemdiscardsnotificationsthatexceedthislimit.Itconsidersarecurringnotificationtobeasinglenotification.这是否意味着当我在今天的不同时间安排64个本地通知时,我将无法在明天或下周安排任何本地通知?