From 26ed0c42b6241901e3d2d33b2e8857f7c801a76a Mon Sep 17 00:00:00 2001 From: Toni Date: Thu, 2 Apr 2020 09:08:25 +0200 Subject: [PATCH] Update README.md added FAQ section to README and started with first question "Why my real iPhone device don't get any token or error." --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 1840d518c..5202f2296 100644 --- a/README.md +++ b/README.md @@ -548,6 +548,22 @@ getThreadID(); Gets the thread ID on the notification +# FAQ / Known pitfalls + +### Why my real iPhone device don't get any token or error. + +It can happend that your device has no longer a connection to the apple services so it will not receive any token. +So try to restart your iPhone and/or put an SIM card into your device to establish a new connection to apple. + +#### Source: +https://developer.apple.com/library/archive/technotes/tn2265/_index.html#//apple_ref/doc/uid/DTS40010376-CH1-TNTAG21 + +**No Delegate Callbacks** + +When the first push-capable app is installed, iOS or OS X attempts to establish a persistent network connection to the push service that will be shared by all push-capable apps on the system. If neither delegate callback application:didRegisterForRemoteNotificationsWithDeviceToken: nor application:didFailToRegisterForRemoteNotificationsWithError: is called, that means that this connection has not yet been established. + + + [build-badge]: https://img.shields.io/circleci/project/github/react-native-community/push-notification-ios/master.svg?style=flat-square [build]: https://circleci.com/gh/react-native-community/push-notification-ios [version-badge]: https://img.shields.io/npm/v/@react-native-community/push-notification-ios.svg?style=flat-square