■Main topic
Using OneSignal, I installed a push notification function in my web application. In Safari on iOS and iPadOS Only in the following specific cases, push notifications will not be delivered to the terminal unless the conditions are met.
When the conditions are met, the accumulated push notifications It arrives all at once like a dam has broken.
Please tell me how to solve it.
■Specific cases
- When in the foreground (for pages other than admin.php)
- When in the background (when displaying a page other than admin.php and putting it in the background)
■Conditions
・Page transition to admin.php with window back ・Page transition with <a>,<input type="submit">
■Supplement
Only admin.php has read the following files.
- manifest.json
- https://cdn.onesignal.com/sdks/OneSignalSDK.js
- process_push_tokens.js (OneSignal.init(), OneSignal.on(), and the process of saving tokens to the database are described)
■Tried
I read the three files listed in the above supplement on a page other than admin.php, but when I did so, I could not receive push notifications when admin.php was displayed.