khmyznikov / ios-pwa-wrap

Makes possible of publishing PWA to Apple Store like TWA from Google.
The Unlicense
153 stars 13 forks source link

Improvements discussion #1

Open khmyznikov opened 3 years ago

khmyznikov commented 3 years ago

Feel free to suggest and discuss

khmyznikov commented 3 years ago

For now notification permission request shows up immediately after app starts. This needs to be changed for ability to call from JS code.

khmyznikov commented 3 years ago

I have made a push permission request from JS code.

khmyznikov commented 3 years ago

Fixed errors in requesting Location or Media APIs.

dmytro-podolianskyi-ew commented 2 years ago

Could you tell please, what about apple social login? I get an error [core] No URL for Apple ID Authorization Maybe do I need to add some configs or smth like that?

khmyznikov commented 2 years ago

Could you tell please, what about apple social login? I get an error [core] No URL for Apple ID Authorization Maybe do I need to add some configs or smth like that?

Do you use this library? I don't try it actually, not sure I can help.

aidar87 commented 2 years ago

Could you tell please, what about apple social login? I get an error [core] No URL for Apple ID Authorization Maybe do I need to add some configs or smth like that?

I added Appleid domain to WKAppBoundDomains in Info file and using this guide https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_js/configuring_your_webpage_for_sign_in_with_apple

dmytro-podolianskyi-ew commented 2 years ago

Thanks, it's working!

dmytro-podolianskyi-ew commented 2 years ago

Guys, maybe you help me again) What about google social login? When I try to login via google I stuck on the screen with loader and text "One moment please". I've added accounts.google.com to WKAppBoundDomains as the same as apple, but it's not working. Could you help please?

khmyznikov commented 2 years ago

Guys, maybe you help me again) What about google social login? When I try to login via google I stuck on the screen with loader and text "One moment please". I've added accounts.google.com to WKAppBoundDomains as the same as apple, but it's not working. Could you help please?

Try to debug via XCode and Safari dev tools. Maybe there are more domains than just accounts.google.

aidar87 commented 1 year ago

@khmyznikov maybe it is time to add corrections to the readme for iOS 16.4 to prevent double Push from Web Push API and native Push API (for iOS devices < 16.4)

khmyznikov commented 1 year ago

@khmyznikov maybe it is time to add corrections to the readme for iOS 16.4 to prevent double Push from Web Push API and native Push API (for iOS devices < 16.4)

You have Web Push in this wrapper?

aidar87 commented 1 year ago

You have Web Push in this wrapper?

Yes. But currently cannot test it on iOS 16.4 beta. Seems, there will no double Push in native wrapper, web push works only if PWA added home screen

StillOnMyWay commented 1 year ago

You have Web Push in this wrapper?

Yes. But currently cannot test it on iOS 16.4 beta. Seems, there will no double Push in native wrapper, web push works only if PWA added home screen

So to be clear, the Web Push doesn't interfere with the native push implementation in this wrapper?

khmyznikov commented 1 year ago

So to be clear, the Web Push doesn't interfere with the native push implementation in this wrapper? Yes, doesn't. Web Push doesn't work in WKWebView

fenbru commented 1 year ago

Hi @khmyznikov, do you have any demo repo where all functionalities are used?

Thx in advance.

khmyznikov commented 1 year ago

@fenbru what exactly functions? For Push there is code examples in Readme

fenbru commented 1 year ago

Sorry, my question wasn't specific.

Can you list all the places inside the project we should change for our website, not yours? @khmyznikov

khmyznikov commented 1 year ago

@fenbru Settings.swift, Info.plist. Change the urls/domains

jcmaciel commented 11 months ago

Hey guys, thanks for this repo, it's very useful. Let me know if I can help you ;)

khmyznikov commented 11 months ago

Hey guys, thanks for this repo, it's very useful. Let me know if I can help you ;)

Any experience in Swift? 😅