Post

Replies

Boosts

Views

Activity

Subclassing ASWebAuthenticationSession.Callback not working
Hi, Trying to upgrade our SSO login with url and not uriScheme using ASWebAuthenticationSession.init(url:, callback:, completionHandler:) Problem is the documentation is very basi so I was trying to experiemnt and ran into a weird bug ... apparently if I subclass ASWebAuthenticationSession.Callback like this: class CustomThingie: ASWebAuthenticationSession.Callback { override func matchesURL(_ url: URL) -> Bool { PLogDebug("CustomThingie - match url: \(url) - does match? \(super.matchesURL(url))") return super.matchesURL(url) } } The session black box thingie does nothing. That is "do you want to login ..." does not appear, nor any web modal. session.start() does nothing when: session = ASWebAuthenticationSession( url: editedUrl, callback: CustomThingie.customScheme(uriScheme), completionHandler: onComplete ) session.start() works fine when: session = ASWebAuthenticationSession( url: editedUrl, callback: .customScheme(uriScheme), completionHandler: onComplete ) Any insights why is it so? Regards, Martynas
1
0
198
Aug ’24
Green In-Call status bar vs red Recording?
Hello, I developer voip functionality for my clients app. It uses googles WebRTC sdk + callkit. The problem is when I put app into background (.voice and .voip modes enabled in pList) while on call I get red Recording status bar. My clients would like it to be Green like WhatsApp, Skype and native calls app. I can not find any documentation how it is done. All I found is some comments that say Red Recording bar is because I'm running AVAudioSession on .playAndRecord category ( .voiceChat mode) in background. Can anyone instruct me/point me to documentation/example on how can I enter In-Call background state with green status bar? Sincerely, Martynas
1
0
983
Apr ’21
Universal Links Weirdness in ios 14
Could anyone explain to me this weird behaviour on ios 14: AASA: { “applinks”: { “apps”: [ ], “details”: [ { “appID”: “2JRXN3SX2L.lt.pigu.pigu”, “paths”: [ “NOT /*/users/*“, “NOT /*/u/*“, “NOT /*/auth/*“, “NOT /*/orders/payments/hubhandle/*“, “NOT /*/orders/payments/handle/*“, “NOT /orders/payments/hubhandle/*“, “NOT /orders/payments/handle/*“, “NOT /*/o/app/*“, “NOT /o/app/*“, “NOT /*version=full”, “*” ] } ] } } Entitlements: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>aps-environment</key> <string>development</string> <key>com.apple.developer.associated-domains</key> <array> <string>applinks:pigu.lt</string> <string>applinks:click.email.pigu.lt</string> <string>applinks:mobile.pigu.lt</string> <string>applinks:pigu.page.link</string> </array> <key>com.apple.security.application-groups</key> <array> <string>group.lt.pigu.pigu</string> </array> </dict> </plist> App bundle: lt.pigu.pigu Links with click.email.pigu.lt domain (password reset, like: https:// click.email.pigu.lt/?qs=0b41cb0f7e00550a8ed1ad655977ebe71ff54138701a61c87d1c50e572776b217272de7cda7c4fe0a8df9df3060a5c4a0cff21828855d875) work just fine. They open directly to app. Now pigu.lt domain links (like: https:// pigu.lt/lt/kvepalai-pigiau/kvepalai-moterims/tualetinis-vanduo-dolce-gabbana-3-limperatrice-edt?id=538670) act weird. They open in web and then apple banner drops down to suggest open it in app (clicking on it works fine). But only if app is from appstore. With dev builds/fastlane builds banner suggest downloading app from appstore. click.email links work fine with all versions. If I long press on click.email link it suggest opening in web and app. pigu.lt link - only open i web. Universal links works fine with ios12. AASA validator says everything is fine. Any ideas?
0
0
787
Nov ’20