Ask Different (Apple)
Q&A for power users of Apple hardware and software
Latest Questions
11
votes
7
answers
10736
views
Sending push notification to iPhone via AppleScript
Is there any combination of iPhone and/or Mac apps that I can use to send a push notification to my iPhone? For example, let's say I want to create a service (invoked via (Application Name) > Services) which sends the highlighted text on my Mac to my iPhone as a push notification message.
Is there any combination of iPhone and/or Mac apps that I can use to send a push notification to my iPhone?
For example, let's say I want to create a service (invoked via (Application Name) > Services) which sends the highlighted text on my Mac to my iPhone as a push notification message.
Senseful
(24445 rep)
Feb 22, 2011, 01:52 AM
• Last activity: Dec 27, 2023, 11:33 AM
20
votes
8
answers
71513
views
How to disable Apple Push Notification Service (apsd) which is trying to bypass firewalls
I am using an iMac at work, and the IT security guys are raising issue with the Apple Push Notification Service (apsd) trying to bypass the proxy continually. I would like to know how I can disable apsd from running.
I am using an iMac at work, and the IT security guys are raising issue with the Apple Push Notification Service (apsd) trying to bypass the proxy continually.
I would like to know how I can disable apsd from running.
novicePrgrmr
(973 rep)
May 24, 2013, 09:11 AM
• Last activity: Mar 28, 2022, 10:30 AM
10
votes
3
answers
3282
views
How are Apple devices maintaining persistent connections with Apple servers for things such as APN, FindMy network, etc
Apple devices such as iPhones and Macs are able to receive near real-time notifications from the APN system, as well as frequently checking in with the FindMy network, and more. I am wondering how these devices are able to maintain persistent connections with Apple servers. I assume that Apple devic...
Apple devices such as iPhones and Macs are able to receive near real-time notifications from the APN system, as well as frequently checking in with the FindMy network, and more. I am wondering how these devices are able to maintain persistent connections with Apple servers.
I assume that Apple devices would not use something like polling, since that would likely eat up battery and waste cellular data. I'm wondering if Apple uses something like WebSockets , or maybe their own proprietary system?
cwille97
(103 rep)
Feb 6, 2022, 06:36 PM
• Last activity: Feb 15, 2022, 01:12 PM
2
votes
2
answers
4233
views
My Group FaceTime calls don’t ring on the receiving end
My Group FaceTime calls don’t ring on the receiving end. However, if I call recipients one at a time, their end rings and they pick up. It doesn’t matter who I call (my parents, sister, or in-laws) or if I call from my iPhone 12, my wife’s iPhone 12, or either of our iPads Pro. All of our devices ru...
My Group FaceTime calls don’t ring on the receiving end. However, if I call recipients one at a time, their end rings and they pick up. It doesn’t matter who I call (my parents, sister, or in-laws) or if I call from my iPhone 12, my wife’s iPhone 12, or either of our iPads Pro. All of our devices run iOS 14.x (this has been happening since January and I haven’t noticed a change across updates). The receivers all use new iPads (we bought the family iPads in January to FaceTime with our daughter), but lack the skills (and we lack the patience) to help troubleshoot.
Is there a fix for this?
Richard Herron
(779 rep)
Apr 30, 2021, 11:09 AM
• Last activity: Apr 30, 2021, 07:27 PM
1
votes
1
answers
172
views
De-Register for Push Notifications
I granted permission for a site to send me push notifications on my desktop, and now I would like to revoke that permissions. While I can change the delivery permissions in Safari to decline push notifications from that site, my understanding is that this simply prevents them from being displayed, b...
I granted permission for a site to send me push notifications on my desktop, and now I would like to revoke that permissions.
While I can change the delivery permissions in Safari to decline push notifications from that site, my understanding is that this simply prevents them from being displayed, but does not disassociate my device from the specific server sending those push notifications.
How can I completely de-register for push notifications from a given website or service, after originally agreeing to receive push notifications?
Dr-McGillicuddy
(43 rep)
Oct 3, 2020, 09:16 AM
• Last activity: Jan 26, 2021, 12:55 PM
5
votes
1
answers
2552
views
apsd/mDNSResponder spamming thousands of DNS queries per second on macOS Big Sur
I upgraded a machine to macOS Big Sur two days ago, and after a day or so my PiHole DNS server randomly stopped working, which upon inspection was caused by gigabytes of logs for DNS queries made by the Big Sur machine overwhelming the poor thing. I monitored DNS requests on the machine with `tcpdum...
I upgraded a machine to macOS Big Sur two days ago, and after a day or so my PiHole DNS server randomly stopped working, which upon inspection was caused by gigabytes of logs for DNS queries made by the Big Sur machine overwhelming the poor thing. I monitored DNS requests on the machine with
tcpdump
:
$ sudo tcpdump port 53 -k NP
xx:xx:xx.xxxx (proc mDNSResponder:32622, eproc apsd:108) IP 192.168.0.xxx.xxxxx > pi.domain: 24541+ A? xxx-courier-x.push-apple.com.akadns.net. (64)
...
and holy crap, apsd
, the Apple Push Notification Service daemon, was literally spamming multiple DNS queries for xxx-courier-x.push-apple.com.akadns.net
through mDNSResponder
*every millisecond* (the domain is obfuscated a bit here; the 5th level domain is different for different geographical regions).
Note that the DNS queries are answered just fine, the domain isn't blocked by PiHole or anything.
I killed mDNSResponder
which made it stop, which might indicate that apsd
is the innocent party and mDNSResponder
is the culprit, but I can't be sure.
I then rebooted out of caution, and after a day or so, the problem started again.
I've never seen anything like this on previous versions of macOS. Anyone got insight? Or experiencing something similar and have more details to add?
4ae1e1
(849 rep)
Nov 17, 2020, 07:53 AM
• Last activity: Nov 28, 2020, 06:25 PM
0
votes
0
answers
215
views
Debug and Reset push notifications in iOS
For a couple of days now, my iPhone does not receive push messages any more (I am **not** talking about notifications ... I am talking about push messages that are also used to initiate WahsApp Web/Desktop, among others). This applies to all apps (WhatsApp, Threema etc.) It also breaks WhatsApp Web/...
For a couple of days now, my iPhone does not receive push messages any more (I am **not** talking about notifications ... I am talking about push messages that are also used to initiate WahsApp Web/Desktop, among others).
This applies to all apps (WhatsApp, Threema etc.)
It also breaks WhatsApp Web/Desktop.
I applies to all networks (I have tried with various Wifis putting the phone into airplane mode as well as with cellphone network, disabling Wifi).
I have rebooted my phone countless times, even upgraded to the latest and *Reset Network Settings*.
I have tried everything I could find online: Changing date to plus one day, rebooting and changing back. Enabling/Disabling notifications for individual apps.
It seems that something is broken with the iOS system itself.
1. There's gotta be a way to reset push notifications/re-register them. How?
2. What are the steps I can use to to debug?
divB
(201 rep)
Oct 14, 2020, 10:12 PM
8
votes
2
answers
6279
views
How long do Apple retain notifications to be pushed to iOS devices until they expire?
If an app attempts to send a notification to an iOS device that is either powered off or has no network connectivity push notifications need to be kept in queue. For how long does Apple retain notifications to allow the device time to contact the APNS servers?
If an app attempts to send a notification to an iOS device that is either powered off or has no network connectivity push notifications need to be kept in queue.
For how long does Apple retain notifications to allow the device time to contact the APNS servers?
elliott94
(1213 rep)
Jul 14, 2019, 06:46 PM
• Last activity: Oct 3, 2020, 08:22 AM
1
votes
0
answers
1066
views
Tried pushing two build none of it showing in either in testflight or activity tab
Is there any policy change by Apple Connect while pushing to testflight. I tried pushing two build none of it showing in either in testflight or activity tab. Any help here ? I normally build app with distribution certificate and upload it to App Store. Problem is, that it won’t appear in testflight...
Is there any policy change by Apple Connect while pushing to testflight. I tried pushing two build none of it showing in either in testflight or activity tab. Any help here ?
I normally build app with distribution certificate and upload it to App Store. Problem is, that it won’t appear in testflight tab. I can see that build in Activity tab and App Store tab, but not in testflight. Any one faced this recently ?
Screenshot show what am getting while uploading same build number means build is uploaded but not showing.
I didn't get any mail from apple about error.


Avinash Dalvi
(113 rep)
Sep 18, 2020, 07:11 AM
• Last activity: Sep 18, 2020, 09:17 AM
0
votes
0
answers
59
views
iOS new mail does not appear in inbox
I am using iOS mail with an IMAP push enabled inbox. Notifications for new emails appear instantly but sometimes the new email does not appear in the inbox (it seems that it needs to be downloaded first, taking up to 2-3 seconds). Is there a way to eliminate this time and always have the mail in the...
I am using iOS mail with an IMAP push enabled inbox.
Notifications for new emails appear instantly but sometimes the new email does not appear in the inbox (it seems that it needs to be downloaded first, taking up to 2-3 seconds).
Is there a way to eliminate this time and always have the mail in the inbox without waiting for it to appear?
This happens on multiple different accounts.
Is this intended behavior and can it be tweaked?
JoeFrizz
(101 rep)
Aug 17, 2020, 08:12 PM
4
votes
3
answers
600
views
How to prevent iPad from keeping pushing iOS 11 to me?
My iPad Air 2 keeps downloading iOS 11 in the background and then tries to push me into upgrading. I don't want that. I have declined it numerous times, and recovered the storage space it takes up from the download, but every time it keeps doing it over and over. Is there a way for my iPad (currentl...
My iPad Air 2 keeps downloading iOS 11 in the background and then tries to push me into upgrading. I don't want that. I have declined it numerous times, and recovered the storage space it takes up from the download, but every time it keeps doing it over and over.
Is there a way for my iPad (currently running iOS 10) to stop downloading or bothering me about iOS 11 at all?
RocketNuts
(1529 rep)
Aug 20, 2018, 08:36 AM
• Last activity: Jul 20, 2020, 03:27 PM
0
votes
0
answers
28
views
iPhone XS Max running 13.5.1 notification issue
I realize this is not really the kind of question for a SE site and I do apologize but I've looked elsewhere and can't seem to find anything so I'm desperate. Tapping on a notification for a received message, whether in the banner, lock screen, or notification center, will only open the Messages app...
I realize this is not really the kind of question for a SE site and I do apologize but I've looked elsewhere and can't seem to find anything so I'm desperate.
Tapping on a notification for a received message, whether in the banner, lock screen, or notification center, will only open the Messages app but not the actual received message.
Is this a known issue? Is there a resolution?
MILO
(101 rep)
Jul 1, 2020, 10:14 AM
• Last activity: Jul 2, 2020, 02:56 AM
0
votes
0
answers
39
views
Are there any properties in an app configuration (plists and such) that could cause push notifications not to show in the notification center?
I am posting this again with more clarity. https://apple.stackexchange.com/questions/377573/user-reporting-that-push-notification-doesnt-always-show-in-the-notification-ce?noredirect=1#comment509275_377573 I have an app. My client is reporting that push notifications from the app DO NOT go into the...
I am posting this again with more clarity.
https://apple.stackexchange.com/questions/377573/user-reporting-that-push-notification-doesnt-always-show-in-the-notification-ce?noredirect=1#comment509275_377573
I have an app. My client is reporting that push notifications from the app DO NOT go into the notification center.
To me, that sounds like an OS settings issue, as mentioned by the commenter on the other issue.
However I want to get authoritative information on whether there's any way - any possible way, that this is due to some sort of misconfiguration of plist files or something else in the actual development of the app.
I've googled for this, I've searched for this, and I haven't found anything, which is why I am asking here.
So my question is - is there any type of misconfiguration, in the actual build of the app (which I have developed) that could lead to push notifications not appearing in the notification center? Note, they DO appear at the top of the user's screen, and I personally see them in my notification center, as do most users to my knowledge.
The user in question is on iOS 13, on an iPhone 11. Personally, I think it's an OS settings issue, but they're a non-technical user and I am trying to troubleshoot if it could **possibly** be something on my end.
Andrew Alexander
(153 rep)
Dec 15, 2019, 10:33 PM
1
votes
1
answers
582
views
Is it necessary to open each app at least once after restoring from an iCloud Backup before Push Notifications will be generated?
Last week, I upgraded from iOS 12 to iOS 13 on my iPhone XS - all was fine. Due to upgrading to an 11 Pro, I then made an iCloud Backup on my XS, and then restored to the just-created backup on my new 11 Pro - again, all fine. Since that time, however, I've noticed that I'm not receiving push notifi...
Last week, I upgraded from iOS 12 to iOS 13 on my iPhone XS - all was fine. Due to upgrading to an 11 Pro, I then made an iCloud Backup on my XS, and then restored to the just-created backup on my new 11 Pro - again, all fine.
Since that time, however, I've noticed that I'm not receiving push notifications for the majority of apps that I have installed on my new 11 Pro - the only apps that appear to be sending me notifications are the ones that I've deliberately opened manually from my home screen - apps that I haven't yet opened since restoring from my iCloud Backup arn't producing anything - it's worth noting that they were working as expected after upgrading from iOS 12 to 13 on my XS before erasing it. So - things that I've tried so far:
Rebooting the phone
Checking the "Notifications" screen from within Settings.app - all notification settings are as they should be, and are enabled for apps that arn't currently producing them
Things that I deliberately haven't done yet:
Removed the apps that arn't currently producing notifications; I have a lot of these, and don't want to spend time re-organising my Home screen folders if I can avoid it!
Opening each app at least once to see if this begins to generate notifications (see my reasoning below for this)
So - my question. Upon restoring from an iCloud Backup, is it necessary to first open each app individually to force notifications to come through as they were doing before I restored? I have a lot of apps, but would prefer doing this than reinstalling them all individually. I don't remember having to do this when upgrading from my old iPhone 7 to the XS last year; I don't completely understand how APNS works, so can't figure out if my tokens will still be valid from my old iPhone or whether there's a simple solution to this that I just haven't tried yet. I'm not sure if the opening each app approach will work; I opened the Stack Exchange app upon restoring from iCloud to enter my login info, but as of yet haven't received any notifications - I know for a fact that I would have; I have new items in my Inbox that haven't come through as a notification on my new 11 Pro.
elliott94
(1213 rep)
Oct 1, 2019, 10:40 AM
• Last activity: Oct 3, 2019, 12:04 PM
2
votes
2
answers
11826
views
Can I make push notifications for some email addresses only and not others on my iphone?
I have one email address i use to sign up for random stuff. and One that I only give out to people i trust. Over the years the one i use to sign up for stuff has gotten riddled with spam. the other one has all my important emails. I would like to get push notifications from the important email addre...
I have one email address i use to sign up for random stuff. and One that I only give out to people i trust. Over the years the one i use to sign up for stuff has gotten riddled with spam. the other one has all my important emails.
I would like to get push notifications from the important email address and not from the one with all the spam.
In the iphone settings it seems like you can only turn this on or off for all email addresses at once.
Is there any way to turn on push notifications for only certain inboxes and not others?
ZMitton
(123 rep)
Feb 15, 2012, 07:30 PM
• Last activity: Sep 2, 2019, 03:13 PM
0
votes
2
answers
1553
views
I disabled Apple Push Notification Service but it's still attempting to connect to Apple servers
I disabled the service as per the instructions on this page: https://apple.stackexchange.com/questions/92214/how-to-disable-apple-push-notification-service-apsd-on-os-x-10-8 Yet this service is still running at startup! How do I disable it once and for all? Edit: I'm using Mojave
I disabled the service as per the instructions on this page:
https://apple.stackexchange.com/questions/92214/how-to-disable-apple-push-notification-service-apsd-on-os-x-10-8
Yet this service is still running at startup!
How do I disable it once and for all?
Edit: I'm using Mojave
Case39
(457 rep)
Jul 21, 2019, 11:22 PM
• Last activity: Aug 3, 2019, 06:08 AM
0
votes
0
answers
553
views
Immediate email push notifications account + app combos?
Which accounts (e.g. @gmail.com, @outlook.com, @icloud.com, etc.) paired with which apps (e.g. Mail, Gmail, Outlook, etc.) will give me immediate push notifications for any email received? I'm looking for those combinations that generate a push notification within 5 seconds. For example, imagine if...
Which accounts (e.g. @gmail.com, @outlook.com, @icloud.com, etc.) paired with which apps (e.g. Mail, Gmail, Outlook, etc.) will give me immediate push notifications for any email received?
I'm looking for those combinations that generate a push notification within 5 seconds.
For example, imagine if when Outlook is paired with a Gmail account, it uses 15 minute polling to determine when a new message arrives. This would not satisfy my requirement above. On the other hand, imagine you use the built-in mail app with an @icloud.com account, and you enable Push in the settings. This should send immediate push notifications, satisfying the requirement above.
I'm looking for several solutions, not just one so that I can have multiple "inboxes" or workflows.
Senseful
(24445 rep)
May 29, 2019, 04:25 PM
1
votes
1
answers
295
views
How to use lock screen events as a trigger for a script?
My Magic Mouse 2 died today and I thought it would be cool if I could use the locking of the screen as a trigger to send a push notification to my iPhone to remind me to plug my mouse in to charge. I looked into it a little bit. There is an app called EventScripts that has a screen saver trigger. I...
My Magic Mouse 2 died today and I thought it would be cool if I could use the locking of the screen as a trigger to send a push notification to my iPhone to remind me to plug my mouse in to charge.
I looked into it a little bit. There is an app called EventScripts that has a screen saver trigger. I tried out the demo, but it's too slow.
I also learned that I can send push notifications via script from my Mac to my iPhone using Prowl/Growl.
And I found that one of the system logs (
/var/log/DiagnosticMessages/*
) contains activeScreenSaver
events that show up immediately when I watch the console. It would be great if I could just send a prowl push notification whenever activeScreenSaver
appears in that log., I know how to send the push, however all the files in /var/log/DiagnosticMessages
are binary. I can grep them for activeScreenSaver
and see that there are matches, but I don't have one file in ASCII that I can apply tail -f
to and pipe it to a script that watches for activeScreenSaver
occurrences and sends the push... Does anyone know how I could watch those files for activeScreenSaver
occurrences? I've written similar log parsers for other plain text logs before, but I don't know where to start when I'm dealing with binary files that change every so often.
BTW, I have tried using an iBeacon for reminders, but by the time I get the notification, I'm too lazy to go back to my desk to plug the mouse in. So I'd love to get the push notification right after I lock the screen... at least until it becomes habit.
*UPDATE:*
Through more googling, I discovered I could do this:
cat 2019.05.17.asl | strings - -o | grep activeScreenSaver
290676 (com.apple.ScreenSaver.activeScreenSaver
452746 (com.apple.ScreenSaver.activeScreenSaver
481785 (com.apple.ScreenSaver.activeScreenSaver
Note, I used -o
to show the matching line number so I could tell which events were which.
However, that did not include all of my lock screen test events today. I searched through the raw strings output and discovered that if I did this instead, I got all the events from today (when I compared it to what I see in the Console app when searching for activeScreenSaver):
cat 2019.05.17.asl | strings - -o | grep "QuartzCore,ScreenSaver"
290278 nAppKit,GLEngine,Flurry,QuartzCore,ScreenSaver,libdispatch.dylib,CoreFoundation,HIToolbox,Direct,libdyld.dylib
443512 nAppKit,GLEngine,Flurry,QuartzCore,ScreenSaver,libdispatch.dylib,CoreFoundation,HIToolbox,Direct,libdyld.dylib
481387 nAppKit,GLEngine,Flurry,QuartzCore,ScreenSaver,libdispatch.dylib,CoreFoundation,HIToolbox,Direct,libdyld.dylib
482889 nAppKit,GLEngine,Flurry,QuartzCore,ScreenSaver,libdispatch.dylib,CoreFoundation,HIToolbox,Direct,libdyld.dylib
486926 nAppKit,GLEngine,Flurry,QuartzCore,ScreenSaver,libdispatch.dylib,CoreFoundation,HIToolbox,Direct,libdyld.dylib
488824 nAppKit,GLEngine,Flurry,QuartzCore,ScreenSaver,libdispatch.dylib,CoreFoundation,HIToolbox,Direct,libdyld.dylib
501148 nAppKit,GLEngine,Flurry,QuartzCore,ScreenSaver,libdispatch.dylib,CoreFoundation,HIToolbox,Direct,libdyld.dylib
504036 nAppKit,GLEngine,Flurry,QuartzCore,ScreenSaver,libdispatch.dylib,CoreFoundation,HIToolbox,Direct,libdyld.dylib
I thought I was good to go, but when I tried tail -f
instead of cat
, the output was truncated:
tail -c +1 -f 2019.05.17.asl | strings - -o | grep "QuartzCore,ScreenSaver"
290278 nAppKit,GLEngine,Flurry,QuartzCore,ScreenSaver,libdispatch.dylib,CoreFoundation,HIToolbox,Direct,libdyld.dylib
443512 nAppKit,GLEngine,Flurry,QuartzCore,ScreenSaver,libdispatch.dylib,CoreFoundation,HIToolbox,Direct,libdyld.dylib
I'm not sure why tail -f
stops in the middle of the file... Plus, I would still have to figure out how to update the tail when the file changes...
tail -F
gets me farther - to the current end of the file, but new entries added to the file do not spit out.
Also, I tried a few homebrew versions of tail which I had hoped would allow the monitoring of multiple files, but none of them were able to handle the binary files...
Interestingly, if I don't pipe the output of strings
to anything, I see live messages continually come out. But if I pipe to grep of a perl on-liner, the stream just dies half way through.
hepcat72
(1375 rep)
May 17, 2019, 03:52 PM
• Last activity: May 21, 2019, 08:37 PM
10
votes
1
answers
15182
views
What is "http://init-p01st.push.apple.com"?
Ive seen this popup a few times in my internet tracking. So, what is Apple using this url for? What happens if I block it?
Ive seen this popup a few times in my internet tracking. So, what is Apple using this url for? What happens if I block it?
DisplayName
(1953 rep)
Feb 23, 2015, 08:00 PM
• Last activity: Apr 25, 2019, 08:51 AM
1
votes
1
answers
2244
views
iOS app using polling to retrieve newest data
Currently we have an iOS app in development which uses polling based method to retrieve latest data from the REST API only if the app is launched by the user. It will keep polling the server periodically for 3-5 seconds when the app is active. At the same time we are also using APNS service for push...
Currently we have an iOS app in development which uses polling based method to retrieve latest data from the REST API only if the app is launched by the user. It will keep polling the server periodically for 3-5 seconds when the app is active.
At the same time we are also using APNS service for push notification.
The question is: If we submit this iOS app to the App Store, will it be rejected by Apple because of using periodically polling method? Apple has suggested the right way is to use APNS for status update in background.
user316088
(11 rep)
Jan 4, 2019, 12:59 AM
• Last activity: Feb 4, 2019, 12:02 AM
Showing page 1 of 20 total questions