KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Test push notifications in simulator without needing .p8 authentication key file
PRODUCT: 4D for iOS | VERSION: 18 R | PLATFORM: Mac
Published On: May 12, 2021

Normally, to use push notifications in a 4D for iOS project, you would need to generate a .p8 authentication file key from your Apple developer account first. Then, you would link the authentication key to your mobile project in the Publishing section. If you do not have this key file linked, then you would get verification errors upon trying to use push notifications.

However, if you are only testing push notifications on Simulator, you can bypass the .p8 key file verification step. To do this, simply hold the SHIFT key down before activating the push notification. More specifically, SHIFT needs to be pressed down before the instantiation of the PushNotification class. This will bypass the .p8 key file check and allow you to send the push notification in Simulator without a linked .p8 file.