इस्तेमाल करने के बाद एप्पल p8 को APN के प्रमाणीकरण कुंजी परिवर्तित साथ APN से कनेक्ट करने, इस तरह के रूप में वर्तमान https://github.com/immobiliare/ApnsPHP पुस्तकालयों अभी भी कनेक्ट करने के लिएकैसे पीएचपी p8 प्रमाणन कुंजी फ़ाइल
$push = new ApnsPHP_Push(
ApnsPHP_Abstract::ENVIRONMENT_SANDBOX,
'server_certificates_bundle_sandbox.pem'
);
// Set the Provider Certificate passphrase
// $push->setProviderCertificatePassphrase('test');
// Set the Root Certificate Autority to verify the Apple remote peer
$push->setRootCertificationAuthority('entrust_root_certification_authority.pem');
// Connect to the Apple Push Notification Service
$push->connect()
नोड के साथ वर्ष पीईएम और प्रमाणपत्र फ़ाइलों का उपयोग करें। js उदाहरण (https://eladnava.com/send-push-notifications-to-ios-devices-using-xcode-8-and-swift-3/), मैं इस तरह भेज सकता है:
var apnProvider = new apn.Provider({
token: {
key: 'APNsAuthKey_Q34DLF6Z6J.p8', // Path to the key p8 file
keyId: 'Q34DLF6Z6J', // The Key ID of the p8 file (available at https://developer.apple.com/account/ios/certificate/key)
teamId: 'RLAHF6FL89', // The Team ID of your Apple Developer Account (available at https://developer.apple.com/account/#/membership/)
},
production: false // Set to true if sending a notification to a production iOS app
});
मैं PHP का उपयोग कैसे कर सकते हैं जैसे मैं Node.js में क्या आईओएस के लिए दूरस्थ सूचना भेजने के लिए?
क्या आपके पास कोई समाधान है? :) – Maximus1809
@ मैक्सिमस 180 9 अभी तक नहीं :) :) – mehmetsen80
मैं ऐसा करने का एक तरीका ढूंढ रहा हूं, ऐसा लगता है कि मुझे समाधान करना होगा –