问题标签 [notificationservices]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
1086 浏览

java - Not Receiving notification from GCM sent from Notification Server

I am trying to implement a notification server for an android app. I followed the tutorial http://javapapers.com/android/google-cloud-messaging-gcm-for-android-and-push-notifications/ and its working fine. But now the entire thing of server side is handled by my notification server with whom I share my device id and userId on user login. My notification server successfully sends the regid to the gcm but I am not receiving notification on my device. My onReceive() is not getting called now. This is the response which my server has received from gcm. messageId=0:1463550332634647%fd0791fdf9fd7ecd

Config.java

GCMNotificationIntentService.java

GCMBroadcastReceiver.java

0 投票
1 回答
501 浏览

ios - 通知服务扩展中的 Gif 崩溃

我正在尝试实现通知服务扩展,我能够将它用于图像、音频和视频。但在 Gifs 中,很少有 gif 扩展程序崩溃。例如。我尝试了这个使我的扩展程序崩溃的附件 url:https ://g.twimg.com/blog/blog/image/Taco_Party_0.gif

我将下载的 gif 保存在临时文件夹中,然后创建一个UNNotificationAttachment实例。该实例不是 nil 并且我检查了附件类型以确认,它给了我com.compuserve.gif. 并非所有 gif 都发生这种情况,但我在多种情况下都发现了这个问题。

我进入Program ended with exit code: 0控制台。

谁能帮我这个?

0 投票
0 回答
48 浏览

android - Android 服务连接到外部数据库

这是我的第一篇文章。我正在开发一个项目,用户不断将数据发送到Server并且 Clint 接收它。假设 Facebook 的例子,朋友发布东西,我们得到Notification. 我目前正在做同样的事情,试图制作一个NotificationService将连接到数据库并跟踪用户的新数据和克林特收到通知。

我需要帮助找到这个逻辑,如何保持连接到服务器并接收数据,数据接收功能在哪里持续运行。

对此和演示的任何链接都表示赞赏。

0 投票
1 回答
1323 浏览

swift - 带有 NSLocalizedString 的通知服务扩展

我正在使用通知服务扩展来根据我想要的更改来自服务器的文本。

但是,这对普通字符串效果很好。但是当我使用 NSLocalizedString 时,它不会显示本地化字符串,而是显示字符串的字段名称。

例如:在 UNNotificationServiceExtension 内部:

在 Localizable.strings 中,我输入了以下行:

请注意,我将相同的代码行放在普通视图控制器中,它工作得很好。

0 投票
1 回答
140 浏览

ios - 检查 Notitifcationservice.m 文件中的一些修改日志(通知服务扩展)

出于修改通知的目的,我们使用了通知服务扩展,但我无法在我的 xcode 控制台中找到一些日志。

-(NSString*)getfunction {

}

Nslog 不会出现在 Xcode Console 中。

放入 Appdelegate.m 的相同代码工作正常

0 投票
1 回答
270 浏览

ios - 使用 iOS 通知服务扩展阻止显示推送通知

我知道使用 iOS 通知服务扩展可以预处理推送通知。我正在寻找一个允许我跳过推送通知的程序,如果条件得到验证。例如,如果推送不再更新,我想避免打扰用户。

通知服务扩展或其他是否有可能?我已经尝试将正文设置为空字符串,但修改被丢弃。

谢谢

0 投票
1 回答
422 浏览

android - 如何从 notificationserviceListener 将 PendingIntent 作为对象保存到 Realm 中?

使用NotificationServiceLister,我检索pendingIntent通知。现在我想将它pendingIntent作为一个对象存储到任何离线数据库中,realm, greendao, sqlite, ormLite, active android等等。这可能吗?如果可以的话,那怎么办???或者有没有其他方法可以找到pendingIntent任何特定通知的?

0 投票
1 回答
96 浏览

ios - 如何在 NotificationServiceExtension 中设置断点?

当应用程序进入终止模式时,是否可以将调试点放入 NotificationServiceExtension。

实际上我想实现的是将远程通知数据保存到数据库中,但在某些随机情况下,数据未保存到数据库中。

帮助将不胜感激。

0 投票
1 回答
719 浏览

c# - UnityEngine.iOS.NotificationServices.CancelLocalNotification 不删除通知

我目前正在构建一个类来处理我的 iOS 版 Unity3D 游戏的通知。但是当我使用UnityEngine.iOS.NotificationServices.CancelLocalNotification (nt);时,预定的通知没有任何反应。

有人可以帮助指导如何使这项工作吗?

作为替代方案,我可以使用UnityEngine.iOS.NotificationServices.CancelAllLocalNotifications,但这会不那么优雅。

我在 iphone 6S 上使用 Unity 2017.2.0f3 和 iOS 11.2.1。

0 投票
1 回答
5390 浏览

android - 在没有 fcm 、 pusher 的情况下创建我自己的推送通知服务,

我想创建一个不基于 Google 服务或类似服务的通知系统提供程序。事实上,我想获取有关其整体架构和所需 Android sdk功能的信息。

对我来说最奇怪的一点是了解如何向 Android 设备发送通知。

我的意思是,我如何从互联网上数以百万计的其他 Android 设备中识别出安装了我的应用程序的 Android 设备?

我如何向他发送信息?我应该为这个或类似的东西使用套接字吗?