Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Frequent "Unable to generate ICNS file for push notification package" errors

I keep getting

Unable to generate ICNS file for push notification package

errors emailed to me for the Safari push notifications I've set up on my site. They work without errors for my laptop and any other I've tried, and I've read and re-read the instructions of how to make a push package and mine looks valid...

Reading in Apple's docs, it says the reason for this error is

Your iconset may have malformed PNGs

but I've checked they are all just fine, no transparency, and again they work on my laptop... what the hell? Has anyone else out there experienced this or found a workaround? Anybody know of a push package testing tool?

like image 613
Mohamed Hafez Avatar asked Sep 18 '16 05:09

Mohamed Hafez


People also ask

Does Safari support push notifications?

Web push notifications have been existing on almost all operating systems (Windows, Linux even macOS on desktops and Android on mobiles) and almost all browsers (Chrome, Firefox, MS Edge, Safari, Opera, etc.). The only major operating system which didn't enable web push notifications was iOS.

How do I send push notifications in Safari?

You can use Amazon Pinpoint to send messages to macOS computers that use Apple's Safari web browser. To send a message to the Safari browser, you must specify the raw message content, and you must include a specific attribute in the message payload.


2 Answers

In my case the error was caused by a wrong DPI of the images.

Solution: http://blog.pushpad.xyz/2016/11/unable-to-generate-icns-file-for-push-notification-package-solved/

like image 190
collimarco Avatar answered Sep 21 '22 13:09

collimarco


I ended up re-making all the icons using the Icons app from the mac app store, and then making the push package using the push_package gem for ruby, and I no longer have the problem:)

like image 28
Mohamed Hafez Avatar answered Sep 20 '22 13:09

Mohamed Hafez