I’m trying to implement iOS push notifications. My PHP version stopped working and I haven’t been able to get it working again. However, I have a node.js script that works perfectly, using Apple’s new Auth Key. I am able to call that from PHP using: However, I would like to be able to pass the deviceToken and message to it.
Tag: apple-push-notifications
How to mock Push notification native module in React native jest tests?
When using the module react-native-push-notification, I had this error: I tried to mock the module by creating __mocks__/react-native.js and putting this code within it: Now, I have this error: How I could mock fully this module the right way? Answer I mocked the module PushNotificationIOS by creating a setup file jest/setup.js: I’ve configured jest to run this setup file by