Good day,
I cant seem to get my iOS push notifications to work. I can send and receive them successfully with Android , but no luck with iOS. I do ask for permission to send notifications to the user and I also tested the prompt and it works .
I do have a question regarding the setup of the push notifications in the apple store. In the identifiers section on the apple developers page next to the iOS push notification section. Should i create a machine certificate in order to make this work?
Yes I have. Log in to your apple dev account and under Certificates, Identifiers and Profiles make sure you only have one key. (The Adolo key) If you have 2 custom key already then that won’t work. Reason is, that once you publish your Adalo app to the Apple Store through the UI then it creates the key for you, but if you already have 2 custom keys then it won’t be able to add the Adalo key. If that is not the case then Under your identifiers, click on the identifier associated with your app and then scroll down to “Push Notifications” make sure that section is ticked.
Thanks for the quick reply! I have a single key (the Adalo key) and have Push Notifications enabled (see below). However, I have no certificates associated with Push Notifications. Is that okay?
Was the Push Notification setting enabled before or did you do that now? Everything seems to be in order. And you don’t have to have certifications. Just make sure in your app you do ask for permission (“Request for permission action”) to send them notifications. And of course they need to approve and you can only test that what the account that doesn’t do the triggering of the notification. Example: Account A subscribes to a list. But Account B needs to submit items in that list in order for Account A to receive the notification. Account A can’t subscribe to a list and add items to the list and expecting a notification. If that makes sense?
Sure no problem. navigate to this link https://developer.apple.com/ and once you are singed in. then on the landing page you will see Certificates and Identifiers.
It sounds like you’re experiencing some trouble with iOS push notifications. Let’s address your questions one by one.
iOS Push Notifications Setup : Yes, in order to send push notifications to iOS devices, you need to set up push notification capabilities in your app on the Apple Developer portal. This involves creating an App ID with push notification entitlements and configuring push notification certificates.
Push Notification Certificates : Yes, you do need to create push notification certificates for your app. These certificates are used to establish a secure connection between your server and Apple’s push notification service (APNs). There are two types of certificates: the SSL certificate and the authentication key. For development purposes, you’ll use the SSL certificate, and for production, you’ll use the authentication key.
To create a certificate:
Go to the Certificates, Identifiers & Profiles section on the Apple Developer portal.
Select your app ID.
Under “Push Notifications”, click on “Create Certificate”.
Follow the instructions to generate a certificate signing request (CSR) from your Mac and upload it to the portal.
Download the generated SSL certificate and install it in your Keychain Access on your Mac.
Debugging Push Notification Issues: If you’ve followed all the steps correctly and are still facing issues, there could be several reasons for the problem. Some common issues include:
Incorrect configuration of push notification settings in your Xcode project.
Failure to request permission for push notifications in your app.
Problems with your server-side implementation for sending push notifications.
Issues with the device’s network connection or iOS settings.
To debug the issue: Double-check your code to ensure that you’re properly registering for push notifications and handling the registration callbacks.
Verify that your server is sending the push notifications to the correct device tokens.
Check the device’s settings to ensure that push notifications are enabled for your app.
Use logging and debugging tools to track the flow of push notifications in your app and server.
By following these steps, you should be able to set up push notifications for your iOS app and debug any issues you encounter along the way. If you have any further questions or run into any specific problems, feel free to ask!