Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple Push API in iOS 16.4 #183

Open
i0n1ca opened this issue Apr 1, 2023 · 3 comments
Open

Apple Push API in iOS 16.4 #183

i0n1ca opened this issue Apr 1, 2023 · 3 comments

Comments

@i0n1ca
Copy link

i0n1ca commented Apr 1, 2023

Hello,

First of all, I would like to thank you for your time to create this awesome, simple and effective plugin.

Earlier this week Apple launched iOS 16.4 with Push API support in Safari Webkit (plus Notifications and Service Workers in Experimental section from Settings-Safari), which means that every iPhone and iPad that are running iOS 16.4/iPadOS 16.4 could receive notifications from Safari Web Service.

I have just installed Perfecty on my wordpress, subscribed to it from my MacBook and it works perfectly, but I can't subscribe from my iPhone.

Is there anything to activate, modify in order to have Perfecty able to send notifications on iPhones and iPads?

Many thanks,
ionica

@code-flow
Copy link

Hey @i0n1ca,

Maybe I can clarify a bit more as I am currently working on a project to get iOS notifications working for one of my clients and I want to use this plugin (which is really great as it reduces our development time a lot, so thanks for this!)

As stated here, push notifications will only work if the website has been added to the home screen "using the share screen in Safari". I haven't tested this (I'm currently installing the new version on my device for testing), but I think what Pefecty Push needs to do is show iOS users a notification telling them to add the site to the home screen in order for web push notifications to work properly.

Greetings
Flo

@amro80
Copy link

amro80 commented Apr 4, 2023

That is really nice idea, I just came here to suggest this implementation.
IOS is very important for most of the publishers.
I also suggest adding the country field to the users table. ready to avail a free api for that return user country in json formate.

@i0n1ca
Copy link
Author

i0n1ca commented Nov 5, 2023

You're perfectly right @code-flow
I have managed to create a manifest file, modify the CSS of the plugin but your ideea is very good. Maybe a pop-up suggesting for iOS/iPadOS users to user Share -> Add to Homescreen.

I've tested this notifications on iPhone, iPad and MacBook (even a Windows laptop) notifications can be sent very easily. For iOS and iPadOS I have created an article for my readers to know how to add the app to homescreen and activate notifications for it. link

Now, on macOS Sonoma we can do the same, add to Dock the app "something like iOS add to homescreen". link

ionica

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants