問題タブ [apple-push-notifications]
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.
php - Appleプッシュ通知サービスに最適なホストプロバイダーは何ですか
私は知りたい、APNsのための最も手頃なホスティング業者
動作するには2195&2196ポートを開く必要があるため...
site5とjusthostをチェックしました
どれが一番いいか教えてください
事前に百万ありがとう
iphone - .Net Appleプッシュ通知サービスプロバイダー?
今日、.NetでAPNのプロバイダーを書き始めましたが、壁にぶつかったようです...
ソケットの保護について私が見つけたすべてのことは、System.Net.Sockets.SocketがSSLを実装できないことを示しています。私はrawソケットプログラミングにかなり慣れていません...SSLを介してrawソケットをサーバーに接続する方法を知っている人はいますか?
ios - Apple プッシュ通知サービス
iPhoneでアラームアプリを開発しています。アラームを設定するには、APNS (Apple Push Notification Service) を使用する必要があります。これを行う方法またはこれに関する重要なチュートリアルを教えてください。
php - Apple プッシュ通知サービス: 証明書はサーバー側にインストールしますか?
プッシュ通知サーバーをセットアップするために、Apple プッシュ通知プロバイダー サーバーを構築する方法 (チュートリアル)の指示に従いました。
次のPHPコードで接続しようとすると
次の警告が表示されます
Warning: stream_socket_client() [function.stream-socket-client]: SSL operation failed with code 1. OpenSSL Error messages: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert
Google で見つけた情報によると、問題は私の証明書にあるようです。
OS Xでcsrファイルとpemファイルを生成しています(チュートリアルの指示に従ってpemファイル)。dev.pem を作成したら、それをホスティング プロバイダーにアップロードし、php スクリプトを実行しようとしています。これは、証明書を作成して「インストール」する正しい方法ですか?
私はデバッグのアイデアを使い果たしました。どの方向も素晴らしいでしょう。
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.
objective-c - APNS は、単一のデバイスに対して毎回新しいデバイス トークンを生成しますか?
Apple のプッシュ通知サーバーは、同じデバイスから要求するたびに新しいデバイス トークンを生成することを知りたいですか?
objective-c - APNs を使用する場合、どこから json ペイロードを送信しますか?
プッシュ通知サービスを使用したいときに知りたいのですが、jsonペイロードを送信する場所から、アプリから、またはサーバー上で生成される可能性がありますか? アプリから送信する必要がある場合、json ペイロードとデバイス トークンを独自の Web サーバーに送信するにはどうすればよいでしょうか。
iphone - 複数の iPhone 通知の送信
私のコードは、1 つの通知を送信する必要がある場合は問題なく動作しますが、複数の通知を送信する必要があるたびに、最初の通知のみが送信されます。コードは次のとおりです。
私は何を間違っていますか?
事前に Thx、Mladjo
iphone - APNS結果の凡例
APNS送信プッシュメッセージのint戻り値が何を意味するかを誰かが知っていますか?
具体的には、PHPサーバー側のディレクティブは次のとおりです。
$ resが169の場合もあれば、他の数値の場合もあります。誰かがこれを解読しましたか?
よろしく、Mladen
iphone - バッジの更新をプッシュしている間、以前のメッセージを残しておく方法はありますか?
したがって、次のシナリオを想像してください。
10.00: アプリがメッセージ「Hello」をプッシュします
10.01: アプリがバッジの更新をメッセージなしで同じデバイスにプッシュします
何が起こるかというと、メッセージが消えます。したがって、ユーザーがそれを見なかった場合、それはなくなっています。以前のメッセージを消去せずにバッジ通知を送信する方法はありますか? メッセージを再度送信できることは承知していますが、既にメッセージの準備ができている可能性のあるユーザーにスパムを送信したくありません。
理由については議論したくありませんが、可能であれば?