Closed sans1994 closed 10 months ago
You can take a look here https://github.com/khmyznikov/ios-pwa-wrap how the notifications made for apple store pwa. You need to rely on ios native push. Web Push will not work in this case.
@khmyznikov Thank you for the feedback! Could you please also guide me if I understand the further steps for transitioning to ios-pwa-wrap correctly?
I have come up with this implementation path for myself. It seems logical to me, but i wanted to make sure I've thought everything correctly.
@sans1994 1 ios-pwa-shell is == PWABuilder ios template but with Push Notifications code uncommented. You don't need to change the source code, just compare which part you have commented in your current project. 4 You will need to have Web Push API logic with SW for: Safari, Android, Windows. And Apple Push logic + custom events provided on a web side JUST for Apple Store. 6 You can use Firebase framework for both iOS and Web push. (general advice: don't use firebase provided service worker)
4 You will need to have Web Push API logic with SW for: Safari, Android, Windows. And Apple Push logic + custom events provided on a web side JUST for Apple Store.
I saw in other thread you said it's possible to switch to OneSignal. Do you know how it's done? More specifically, in OneSignal, they ask to choose a target SDK (either NativeIOS / Cordova etc. / Other SDK), and when choosing Other sdk, they ask to configure OneSignal in the app sdk.
@khmyznikov Do you have any sources on why you need to implement native push on IOS? I trying to understand why this is not supported. It would be really nice to only have to implement web push.
I have an iOS app built using PWABuilder. And I have my own server that works with notifications (not third-party services like One Signal or Firebase).
Can my app can receive notifications using PWABuilder considering these conditions?
Is it possible that additional settings are needed like certificates or in Xсode?
Everything works great for now, but only if the app is installed from the browser and not from the app store.
There is also a problem with the application not displaying a popup request to confirm the possibility of sending notifications to the user (only in-app, in PWA installed from the browser everything is OK). Is this problem also due to PWABuilder or is there still something I need to configure?