問題タブ [push-notification]

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 投票する
5 に答える
3709 参照

iphone - サーバーが APNs をサポートするようにするにはどうすればよいですか?

ホストはポート2195を開き、apnsの下でプッシュ通知をサポートする必要があるというstackOverflowの投稿を読みました.apnsをサポートするようにサーバーを作成するにはどうすればよいですか.

この行はプッシュ通知ガイドで何を意味しますか

信頼できるプロバイダー ID を確立するには、ピアツーピア認証を使用して、接続時にこの証明書を APNs に提示する必要があります。

ネイティブ アプリを介して APns に接続する必要がありますか? 誰かこれを説明してください

0 投票する
4 に答える
45527 参照

ios - アプリケーションがすでに実行されている場合、プッシュ通知を処理するにはどうすればよいですか?

アプリケーションがすでに実行されている場合、プッシュ通知をどのように処理しますか?(プッシュ通知アラートの代わりに)アプリケーションが実行されている場合にアラートを表示したい。アプリケーションが実行されていない場合にのみ、プッシュ通知アラートを表示します。

また、ペイロードをAPNに送信する場合、キャンセルボタンを使用してアラートを作成するにはどうすればよいですか?

0 投票する
1 に答える
1201 参照

iphone - iphoneアプリでサーバーにhttpポストリクエストを送信する方法は?

指定された時間の後にプッシュ通知アラートがデバイスに届くように、特定のタイマー要求を使用してネイティブの iPhone アプリからデバイス トークンを送信するにはどうすればよいですか。

0 投票する
2 に答える
3071 参照

iphone - Appleプッシュ通知を使用せずに、サーバーからのiPhoneリアルタイム通知

iPhoneアプリのサーバーからリアルタイムの通知を受け取る方法を探しています。通知がたくさんあるので、Appleプッシュ通知を使いたくありません。私のWebサービスはPHPでコーディングされていますが、この機能を実装する簡単な方法がわかりません。私は何をすべきか考えていますか?

あなたの助けのためにたくさん感謝します!

編集:アプリが起動したときにのみ通知を受け取る方法を探しています(それ以外の場合、唯一のオプションはApple Pushではありません)。

0 投票する
2 に答える
1807 参照

ios - Apple プッシュ通知サービス

iPhoneでアラームアプリを開発しています。アラームを設定するには、APNS (Apple Push Notification Service) を使用する必要があります。これを行う方法またはこれに関する重要なチュートリアルを教えてください。

0 投票する
4 に答える
2749 参照

iphone - Weird Apple Push Notification behaviour when the receiving iPhone is turned off

I'm seeing some very strange behaviour from the Apple Push Notification Servers when the recipient iPhone is off. Here is my scenario:

-Send push notification A to Apple. Within a few seconds a push notification popup gets displayed as expected on the iPhone.
-Send blank notification to Apple to cancel previous one (the previous notification is pointless after about 10 seconds, that's why I want to get rid of it). Nothing displayed on the iPhone.
-Turn OFF iPhone completely (not asleep, it is powered down).
-Send push notification B to Apple. Wait 10 seconds.
-Send blank notification to Apple to cancel previous one. Wait 10 seconds.
-Send push notification C to Apple. Wait 10 seconds.
-Send blank notification to Apple to cancel previous one. Wait 30 seconds.
-Turn ON iPhone.
-After about 60 seconds a push notification popup is displayed for notification B on the iPhone.
-Notification C never seems to arrive.

This is very strange! From reading the Apple docs I was expecting only the latest push notification to be sent. I was hoping my blank notification would be sent, I certainly wasn't expecting the oldest unsent push notification to be sent!

The Apple docs say:

Apple Push Notification Service includes a default Quality of Service (QoS) component that performs a store-and-forward function. If APNS attempts to deliver a notification but the device is offline, the QoS stores the notification. It retains only one notification per application on a device: the last notification received from a provider for that application. When the offline device later reconnects, the QoS forwards the stored notification to the device. The QoS retains a notification for a limited period before deleting it.

Has anybody seen this behaviour? Am I just hitting some sort of timing window bug? What should happen?

Updates:
-If I turn the phone off and wait 5 to 15 minutes before sending any push notifications then this problem doesn't occur. In this case when I turn the phone on I don't see any notification popup, although I'm not sure if this is a result of Apple dropping the notification, or their 'queue' working correctly (i.e. holding the newest blank notification instead of the first one with the popup).
-I will investigate further by putting an APNsLogging.mobileconfig onto the iPhone to see what notifications it got.
-Turning wifi off doesn't seem to change the results.
-I have raised a bug report with Apple for this scenario.

0 投票する
1 に答える
7063 参照

objective-c - プッシュ通知を使用するときに複数のデバイスを処理する方法は?

プッシュ通知サービスを利用したいアプリを開発しています。サーバーを持っているので、それを知りたい

  • 複数のデバイスを処理するにはどうすればよいですか?

  • すべての iPhone に固有のデバイス ID/名前はありますか?

  • 特定のデバイス トークンのリクエストを削除したい場合、複数のユーザーをどのように処理すればよいでしょうか?

  • アプリケーションを介してすべてのデバイスに一意の名前を生成する方法はありますか?

0 投票する
4 に答える
1334 参照

android - Android 向けのプッシュ通知システムはありますか?

現在、iPhone、Palm Pre、および Blackberry で利用できるプッシュ通知が、それぞれのメーカーによって提供されています。ただし、Android については何も聞いたことがありません (おそらく、Google が実際に電話自体を販売していないためです。解決策はありますか?

0 投票する
1 に答える
101 参照

iphone - バッジの更新をプッシュしている間、以前のメッセージを残しておく方法はありますか?

したがって、次のシナリオを想像してください。

10.00: アプリがメッセージ「Hello」をプッシュします

10.01: アプリがバッジの更新をメッセージなしで同じデバイスにプッシュします

何が起こるかというと、メッセージが消えます。したがって、ユーザーがそれを見なかった場合、それはなくなっています。以前のメッセージを消去せずにバッジ通知を送信する方法はありますか? メッセージを再度送信できることは承知していますが、既にメッセージの準備ができている可能性のあるユーザーにスパムを送信したくありません。

理由については議論したくありませんが、可能であれば?