问题标签 [pushwoosh]

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 投票
1 回答
364 浏览

network-protocols - Pushwoosh - 谷歌云消息 - 传输

我必须在学校写关于 Pushwoosh 和 Google Cloud Messaging 的传输。例如,当通过远程 API 从服务器发送通知时使用哪种协议。所以我想知道 Pushwoosh 一般是如何工作的,使用哪些协议。

我不太了解数据传输(http等),所以我很难找到它。如果有人知道 Pushwoosh 是如何工作的,那么得到答案会很棒。

谢谢!

0 投票
2 回答
517 浏览

ios - Poosh Woosh - 如何在应用程序中打开推送笔记中的 URL

我正在建立一个新闻网站,其中一个视图是文章的网络视图。
我已经安装了push woosh,但是当我发送带有 URL 的通知时,点击 URL 在本机浏览器中打开网页,有什么办法可以设置它以便在应用程序的 webview 中打开页面?

0 投票
1 回答
481 浏览

javascript - 可以使用 Pushwoosh Remote API + Phonegap 发送基于 GeoZones 的推送

是否可以将推送从后端(使用 Pushwoosh 远程 API)发送到定义地理区域内的任何设备?我可以使用 getNearestZone 函数吗?我完全不明白,我发现 getNearestZone 函数让我知道到 pushwoosh 面板配置的最近地理区域的距离?

0 投票
0 回答
697 浏览

android - Android 上的 Phonegap:推送通知在点击时什么也不做

我有两台安装了相同应用程序的设备(PhoneGap 2.5.0,Android SDK min 11,target 19)。一个工作完美,另一个有以下问题:我向所有设备发送了一个推送通知(通过 PushWoosh,http ://pushwoosh.com/类似于 Urban Airship),我的两个设备都收到了它,但在有问题的设备上,当应用程序不在前台并且我从托盘中点击通知时,通知被关闭但应用程序没有回到前台。

两种设备之间的唯一区别是,一台(工作的)仅通过 Eclipse 和 Android Studio 的本地构建接收应用程序,而另一台(存在上述问题的设备)从本地构建和 TestFlight 接收应用程序(http://testflightapp.com构建管理服务)。

我尝试在工作设备上通过 TestFlight 安装应用程序,现在该设备出现了同样的问题。我尝试卸载 TestFlight 和我的应用程序,然后从 Android Studio 构建到每台设备,但问题仍然存在。

日志猫

在 Android Studio 中,只要我点击通知,logcat 就会告诉我以下信息:

可能与 TestFlight 相关的问题

在我卸载 TestFlight 之前,PushWoosh 的设备注册行为很奇怪。我建立了一个设置页面,用户可以选择加入/退出推送通知,该通知调用 PushWoosh 中的相关服务。Logcat 表示调用正确发生,甚至返回了成功的回调,但设置从未卡住。如果我选择加入(设备已注册)并且我选择退出,那么 PushWoosh 将通过 logcat 报告呼叫成功,但已注册设备的数量不会更新,并且推送通知仍然会通过。相反(选择退出然后尝试选择加入)以同样的方式失败。

一旦我卸载了我的应用程序 TestFlight 并重新安装了我的应用程序,注册/注销我的设备的服务调用就可以完美运行。但是,即使在此之后,点击推送通知也会以同样的方式失败。我不知道如何完全“重置”我的手机以恢复到我之前的状态(一切都与推送通知一起工作)。

AndroidManifest.xml

我不认为是相关的,因为我没有在一切正常和问题开始之间修改清单。包括以防万一。

0 投票
1 回答
597 浏览

cordova - 在应用程序中获取自定义数据 - Pushwoosh

我有一个 Pushwoosh 的高级帐户,我想通过远程 API 从服务器发送自定义数据 (JSON)。现在我的问题是,如何在我的应用程序中获取这些数据。那么如何在我的应用程序中读取这些数据。我正在使用 Phonegap(Cordova) 在 Android 中编程?谢谢您的帮助!

0 投票
1 回答
622 浏览

cordova - Modify notifications in Phonegap and Pushwoosh

I'm currently working on PhoneGap and Pushwoosh and have some questions:

  1. Is it possible to change the text / icon of the notification in the status bar?
  2. If yes, is it also possible to show the notification only when you have received some specified data?
0 投票
1 回答
595 浏览

cordova - Filtering Push-Notifications Client-Side Pushwoosh


I am using Pushwoosh Remote API with PhoneGap(Android). I want to filter the Push Notifications client-side. So if a Push Notification comes, the Notifications should not be shown, but first the custom data in the Notifications should be compared with the selection the user did. So if the user is qualified to see the Notification, the Notifications should be shown. I don´t know how I can realize that. This filtering should be client-side.

I am glad of any solution I get! Thank you

0 投票
1 回答
260 浏览

ios - PushWoosh UIWebview

准备出丑:

我有这个骨架应用程序,它有 PushWoosh 通知类。它工作正常。我可以向我的应用程序发送推送消息。

为此,在我的 AppDelegate 中,有一个名为

这允许我在接受通知时启动东西。

同时,在我的 ViewController 中,我有一个这样的方法:

当从 ViewController 本身调用时,这个工作正常。

但是,当我尝试从 appDelegate 中的“onPushAccepted”方法中调用此方法时,webView 不会显示所需的 URL,尽管如日志所示,该方法已被调用。

我想这表明我对这一切的工作缺乏一些基本的了解。

因此,我会对一些可以使这项工作有效的字符串感到满意,但我会对解释其背后的原因和方式感到非常满意。

我尝试将 onPushAccepted: 放在 ViewController 中,但这根本不起作用,尽管我在 ViewController.m 中包含了必要的“PushNotificationManager.h”。

我很困惑,需要你的帮助。

我认为您的回答将使我接近获得基础知识。

提前谢谢!

0 投票
0 回答
133 浏览

iphone - 重新安装 phonegap 应用程序导致应用程序运行时无法接收推送通知

我正在使用 Phonegap 3.1、Sencha 2.3 为平台 android 和 iPhone 创建一个应用程序。对于发送通知,我使用了 pushwoosh 服务并点击了此链接(http://www.pushwoosh.com/programming-push-notification/ios/ios-configuration-guide/

通知在 Android 和 iPhone 设备(无论应用程序是否正在运行)上都非常完美。

但问题是,当我重新安装应用程序时,我无法在应用程序运行时收到通知,而在应用程序最小化或未运行时收到通知。

在我的 index.html 文件中,我使用此代码在应用程序运行时接收通知。

重新安装应用程序后,此侦听器未调用。我没有得到那里实际缺少的东西,请告知。

0 投票
1 回答
279 浏览

cordova - Pushwoosh 的 Phonegap Build 示例中的 tokenHandler 在哪里?

根据此处的示例,第 4 步:-

http://www.pushwoosh.com/programming-push-notification/ios/ios-additional-platforms/ios-push-notification-sdk-for-phonegap/

它说“从Phonegap Push Plugin修改tokenHandler回调(当然替换“YOUR_PUSHWOOSH_APP_ID”)”

调整。建议有一些东西要开始修改。PushNotification.js 都不是(下面的链接)

https://github.com/phonegap-build/PushPlugin/blob/master/www/PushNotification.js

也不是其他 pushwoosh 代码 pushwoosh.js

包含要修改的任何此类代码。关于这是哪里的任何想法?