Closed Psiiirus closed 4 years ago
I just tried to get the example project of this repo to work but it seems not to be functional either for 1.1.0 it even seems it hasn't been updated to 1.1.0.
Isn't the newest version 1.1.1?
@hannojg well as i started this ticket 1.1.0 was the latest
Just found something really interesting inside the apple docs!
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.
So after adding a sim card into my testing device – which was already connected by wifi – it seems to ping the apple services again and it startet working. Means the following event handler ever gets triggered event the native-code callbacks will not receive any error:
PushNotificationIOS.addEventListener('register', (data) => {
console.warn('_____PushNotificationIOS::register', { ...data });
});
PushNotificationIOS.addEventListener('registrationError', (data) => {
console.warn('_____PushNotificationIOS::registrationError', { ...data });
});
FYI: still struggling with 1.1.0/1 but i think this is a different problem because it's native code changed.
@tahourj thanks for all your time and effort yesterday!
@Psiiirus hi, can you please share that how you fixed "onRegister does not get fired on real iPhone 7"?
Bug
I'm trying to get this lib working on iOS 13.1.3 / iPhone 7 but the onRegister event never gets fired. It is working on other devices so I'm quite confused...unf. I can't upgrade my iOS version because a downgrade is disallowed by apple.
Environment info
push-notification-ios: 1.0.6, 1.0.7 & 1.1.0 I doubled checked all the required iOS code changes and they look fine.
For android I'm using @react-native-firebase/app": "^6.3.4
react-native info
output:Steps To Reproduce
add:
Describe what you expected to happen:
1.requestPermissions gets fired