問題タブ [moonapns]
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.
c# - 月-APNS; 配列を空または null にすることはできません。パラメータ名: rawData
私は .net コーディングが初めてです。現在、Moon apns を実装して、iPhone アプリケーションの 1 つに通知を送信しようとしています。アプリケーションをローカルで (ホスティングなしで) 実行すると、正常に動作し、ios アプリにプッシュ通知を送信できます。私はそれをクロスチェックし、うまく機能しています。しかし、サーバー (ファイアウォールがない) でホストした後、次のエラーが発生します。何が間違っていたのか理解できません。私のコードは次のとおりで、「配列は空または null ではない可能性があります。パラメータ名: rawData」のような例外が発生しました。
コード:
誰でもこれについて助けることができますか?開発用および本番用の p12 ファイルを試しましたが、使用できませんでした。
編集:
ログ情報:
ありがとう、チャンドラ。
ios - Stuck creating p12 file for MoonAPNS
I am having some trouble creating my .p12 certificate. I have previously created an application with push notification, this works fine. The application takes the users device id and saves it into a database.
I have added the code into my new application(with the amendments to work with the new application), and from the Log it seems to be working in the same way as my other app.
I have downloaded the relevant files that i need and then i know i needed to use ssl to be able to create my new and combined p12. I cant for the life of me remember how i created the p.12 file.
I'm using moonapns.
I have used the following:
Step 1:
openssl x509 -in aps_developer_identity.cer -inform DER -out aps_developer_identity.pem -outform PEM}
Where aps_developer_identity.cer is the file you download from the portal
Step 2:
openssl pkcs12 -nocerts -out APSCertificates.pem -in APSCertificates.p12
Where APSCertificates.p12 is a file you export from the Mac Keychain. This is critical, you must import the certificate from the portal into keychain. Find it in My Certificates, open the disclosure triangle and highlight both the certificate and the private key, then right click and export them. Give them a password and save them to a p12 file.
Step 3:
openssl pkcs12 -export -in aps_developer_identity.pem -out aps_developer_identity.p12 -inkey APSCertificates.pem
I have added the certificate and it isn't working, i'm not receiving the notification to the device. Does any one know how else i am supposed to create the certificate??
c# - PushSharp APNS サービスは、Windows のシャットダウン後に動作を停止します
サンドボックス APNS サーバー経由で Push Sharp を使用して iPhone デバイスに通知を正常に送信できますが、問題が発生しています。
.cer および .p12 ファイルを生成し、Windows 8 開発マシンに正常にインストールしました。
このチュートリアルを使用して、Windows 8 マシンに証明書をインストールしました。
昨日は問題なく動作しており、通知を正常に送信していました。システムをシャットダウンし、翌日コードを実行しようとすると、次の例外が発生しました。
メッセージが予期しないものであったか、フォーマットが不適切でした
Google で利用可能な別のソリューションを試しましたが、何も役に立ちませんでした。次に、マシンから証明書を削除してから再インストールすると、再び機能し始めました。
サービスをばかにするために、システムをシャットダウンして通知の送信が失敗したかどうかを確認しましたが、同じ例外で再び失敗しました。
証明書を再度削除し、再インストールして問題を修正しました。私は実際の問題は何ですか?PUSHSharp がシャットダウン後に通知の送信を停止する理由。
注: Windows ファイアウォールは無効になっています。何か案が?
c# - プッシュ通知が届かない iPhone
iPhone でプッシュ通知を送信するための 2 つの簡単な例を使用します。
最初の例。送信には PushSharp を使用します。
2番目の例。MoonAPNSを使用しています
誰かがなぜそれがうまくいかないのか説明できますか?
push-notification - moon-apns ペイロードにない利用可能なコンテンツ
moon-apns を使用してペイロードを送信する必要があります。現在、 NotificationPayloadのペイロード構造が以下のようになっていることがわかります-
Content-Available はどこにありますか? aps の一部である必要があります。moon-apns で欠落しているか、利用できませんか? その場合、以下の例に示すように、aps の一部として Content-Available を送信する方法-
Add custom ; を試しました。ただし、aps 文字列の外側にカスタム プロパティを追加します。
c# - MVC Web プロジェクトから Apple プッシュ通知を送信する
Moon-APNS を使用して Apple デバイスに通知を送信できません。私は別のクラス ライブラリ プロジェクトに APNS 実装を として持っていMyProjet.APNS
ます。クラス ライブラリの参照をMyProject.APNS
Web ProjectMyProject.Web
に追加すると、参照に黄色の感嘆符が表示されます。
どうすれば実行できますか?助けが必要!