एप्पल डॉक्स से:
In iOS 8 and later, voice-over-IP (VoIP) apps register for registerForRemoteNotifications remote notifications instead of using this method. Using remote notifications eliminates the need for a timeout handler to check in with the VoIP service. Instead, when a calls arrives for the user, the VoIP service sends a VoIP remote notification to the user’s device. Upon receiving this notification, the device launches or wakes the app as needed so that it can handle the incoming call.
अतीत में, setKeepAliveTimeout हैंडलर अनुमति देने के लिए उपयोग किया जाता है कॉल एक अंत समय के नाम से जाना और 10 सेकंड की एक अधिकतम से बाहर निकलने या होना चाहिए था समाप्त करने के लिए मजबूर होना, हैंडलर को भी कॉल टाइमआउट मूल्य के भीतर होने की गारंटी नहीं है।
नया (रजिस्टरफोर रिमोट नोटिफिकेशन) हैंडलर आंतरिक (आईओएस) के साथ काम करने के लिए ठीक होगा और जब रिमोट-इवेंट होता है तो यह आपके ऐप को कॉल करेगा (यह आपके ऐप को सोएगा अगर यह सो रहा है)।
किसी भी तरह से, दोनों को एक ही काम करना चाहिए, पुराना संस्करण आप कोड को संभालेगा, और नया, आपको एक अधिसूचना प्राप्त होगी (इसे कहीं भी संभाल लें), लेकिन अब आप टाइमआउट को नियंत्रित नहीं करेंगे।
एप्पल डॉक्स से:
Call this method to initiate the registration process with Apple Push Notification service. If registration succeeds, the app calls your app delegate object’s application:didRegisterForRemoteNotificationsWithDeviceToken: method and passes it a device token. You should pass this token along to the server you use to generate remote notifications for the device. If registration fails, the app calls its app delegate’s application:didFailToRegisterForRemoteNotificationsWithError: method instead.
आप अपने ऐप के दूरस्थ सूचनाएं, अलर्ट प्रदर्शित ध्वनियों खेलते हैं, या अन्य उपयोगकर्ता का सामना करना पड़ कार्रवाई करने के लिए चाहते हैं, आप registerUserNotificationSettings कॉल करना होगा: विधि प्रकार के नोटिफिकेशन का अनुरोध करने के आप उपयोग करना चाहते हैं। यदि आप उस विधि को कॉल नहीं करते हैं, तो सिस्टम चुपचाप आपके ऐप पर सभी रिमोट नोटिफिकेशन प्रदान करता है। चूंकि पंजीकरण प्रक्रिया उपयोगकर्ता की पसंदीदा अधिसूचना सेटिंग्स को ध्यान में रखती है, उपयोगकर्ता के सामने आने वाले अधिसूचना प्रकारों तक पहुंच का अनुरोध करने से यह गारंटी नहीं मिलती है कि उन्हें दिया जाएगा। यह पता लगाने के लिए कि कौन सी अधिसूचना सेटिंग्स उपलब्ध हैं, मौजूदा यूज़र नॉटिफिकेशन सेटिंग्स विधि का उपयोग करें।
और अंत में (संयुक्त राष्ट्र के पंजीकरण के लिए):
You should call this method in rare circumstances only, such as when a new version of the app removes support for all types of remote notifications. Users can temporarily prevent apps from receiving remote notifications through the Notifications section of the Settings app. Apps unregistered through this method can always re-register.
सुनिश्चित नहीं हैं, लेकिन मुझे आशा है कि इस मदद करता है।
सादर,
Heider सती
मुझे एक ही समस्या है। मेरा वीओआईपी ऐप KeepAlive टाइमआउट पर पंजीकरण रीफ्रेश करता है। यह लैन पर्यावरण में भी काम करना चाहिए, इंटरनेट कनेक्टिविटी का मतलब है जिसका मतलब कोई रिमोट नोटिफिकेशन नहीं है। मेरा ऐप अभी इस बहिष्कृत एपीआई के साथ काम कर रहा है लेकिन यह सुनिश्चित नहीं है कि यह कितना समय लगेगा। – Phani2013