Skip to content

[firebase-dynamic-links][ios] - app crashes on fresh install because it tries to process the content of pasteboard as dynamic link #111

Closed
@VepretskiyD

Description

@VepretskiyD

iOS 15.5 (both simulator and device)

"@nativescript/core": "~8.3.1",
"@nativescript/ios": "~8.3.2",
"@nativescript/firebase-core": "^2.2.6",
"@nativescript/firebase-crashlytics": "^2.2.6",
"@nativescript/firebase-dynamic-links": "^2.2.6",
"@nativescript/firebase-messaging": "^2.2.6",

  • ns run ios --no-hmr --clean
  • app builds and deploys to an emulator or device
  • app opens for a second
  • pasted from CoreSimulator notification pops up for a second on the top of the screen
  • app crashes
0   ???                           	               0x0 ???
1   nativescriptapp               	       0x1053f17d0 TNSFirebaseDynamicLinksAppDelegate.application(_:open:options:) + 448 (TNSFirebaseDynamicLinksAppDelegate.swift:30)
2   nativescriptapp               	       0x1053f18d0 @objc TNSFirebaseDynamicLinksAppDelegate.application(_:open:options:) + 208
3   FirebaseDynamicLinks          	       0x107ffef5b -[FIRDynamicLinks passRetrievedDynamicLinkToApplication:] + 219 (FIRDynamicLinks.m:544)
4   FirebaseDynamicLinks          	       0x107fff1c8 -[FIRDynamicLinks retrievalProcess:completedWithResult:] + 232 (FIRDynamicLinks.m:578)
5   FirebaseDynamicLinks          	       0x107ff5ecb -[FIRDLDefaultRetrievalProcessV2 handleRetrievalProcessWithResult:] + 267 (FIRDLDefaultRetrievalProcessV2.m:172)
6   FirebaseDynamicLinks          	       0x107ff5cd6 __68-[FIRDLDefaultRetrievalProcessV2 retrievePendingDynamicLinkInternal]_block_invoke + 278 (FIRDLDefaultRetrievalProcessV2.m:133)
7   FirebaseDynamicLinks          	       0x107ffbb8c __105-[FIRDynamicLinkNetworking sendRequestWithBaseURLString:requestBody:endpointPath:parserBlock:completion:]_block_invoke_3 + 44 (FIRDynamicLinkNetworking.m:331)
  • this crash doesn't happen anymore until the app is reinstalled and started for the first time

An alternative package from nativescript-community doesn't crash the app but it gets a link //google/link/?request_ip_version=IP_V4&match_message=No pre-install link matched for this device on the first start after the fresh install.

I believe the app considers the content of pasteboard as a dynamic link, tries to process it, and crashes.

I don't mind getting //google/link/?... URL on first app start but the app shouldn't crash

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions