Hi.
Is it possible to do an API call before I actually display a scheduled local push notification? Because I have to do a "status check" on the server if I should still display the local push notification or not.
Unfortunately, we can't send the push from server because of certain decisions made.
Thank you!
Post
Replies
Boosts
Views
Activity
Hi. I encountered the following crash only after installing the pod PusherSwift.
On application launch, getting a crash with the following crash logs:
dyld: Symbol not found: _OBJC_CLASS_$_Reachability
Referenced from: /Users/abc/Library/Developer/CoreSimulator/Devices/387D652C-CB80-4739-88B1-DD04ACAFA8D6/data/Containers/Bundle/Application/D9CEB1B3-9B9D-42E8-AFB6-8BCA056DDE1C/LalaFood-User.app/Frameworks/ChatSDK.framework/ChatSDK
Expected in: /Users/abc/Library/Developer/CoreSimulator/Devices/387D652C-CB80-4739-88B1-DD04ACAFA8D6/data/Containers/Bundle/Application/D9CEB1B3-9B9D-42E8-AFB6-8BCA056DDE1C/LalaFood-User.app/Frameworks/Reachability.framework/Reachability
in /Users/abc/Library/Developer/CoreSimulator/Devices/387D652C-CB80-4739-88B1-DD04ACAFA8D6/data/Containers/Bundle/Application/D9CEB1B3-9B9D-42E8-AFB6-8BCA056DDE1C/LalaFood-User.app/Frameworks/ChatSDK.framework/ChatSDK
I have the following file - https://github.com/ashleymills/Reachability.swift/blob/master/Sources/Reachability.swift copied directly to my project. As I checked PusherSwift.podspec - https://github.com/pusher/pusher-websocket-swift/blob/master/PusherSwift.podspec, it has ReachabilitySwift as a dependency. So, I'm guessing that's where the problem came from. I tried deleting the Reachability file - https://github.com/ashleymills/Reachability.swift/blob/master/Sources/Reachability.swift that was directly copied on my project, but after running, the crash is still there.
Is there something I have to import like the header file or something to add? I keep seeing to add the framework on Frameworks, Libraries, and Embedded Content. I tried to add Reachability.framework there, but it did not work.
Hoping someone could help.
Thank you!
I am doing Sign in with Apple for the first time.My problem is, every time I parse `ASAuthorizationAppleIDCredential.identityToken` on jwt.io and on code, the `kid` is always changing. I don't know if this is really just the case or I am doing something wrong on my end. Maybe wrong instantiation of `ASAuthorizationAppleIDProvider`, `ASAuthorizationAppleIDRequest` or ASAuthorizationController`.@available(iOS 13.0, *)
private lazy var authorizationController: ASAuthorizationController = {
let provider = ASAuthorizationAppleIDProvider()
let request = provider.createRequest()
request.requestedScopes = [.fullName, .email]
let controller = ASAuthorizationController(authorizationRequests: [request])
controller.delegate = self
if let landingVC = self.delegate as? LandingViewController {
controller.presentationContextProvider = landingVC
}
return controller
}()
/// Sign in with Apple button was tapped.
func signInWithApple() {
if #available(iOS 13.0, *) {
authorizationController.performRequests()
}
}But, if it's expected to always change every time, my problem is, the parsed `kid` on my end sometimes does not match the `kid` parsed by our backend.But, I just want to know if that's the expected behavior of kid? Thank you in advance!