Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

Cannot access a disposed object. Object name: 'Foundation.NSUrl'.

Open chuckgiddens opened this issue 3 years ago • 6 comments

Description

I am trying to launch Venmo from my app in iOS. It works in Android. The URI is " venmo://paycharge?txn=pay&recipients=Mark-Billson&note=Attended Practice&amount=10.00"

Steps to Reproduce

  1. Install Essentials
  2. Call Launcher.OpenAsync with URI " venmo://paycharge?txn=pay&recipients=Mark-Billson&note=Attended Practice&amount=10.00"
  3. Get error " Cannot access a disposed object. Object name: 'Foundation.NSUrl'."

Expected Behavior

Launch Venmo like it does in Android

Actual Behavior

Crashes with error Cannot access a disposed object. Object name: 'Foundation.NSUrl'.

Basic Information

I have added the following items to info.plist for my iOS project LSApplicationQueriesSchemes venmo

  • Version with issue: All
  • Last known good version: Never
  • IDE: VSS 2022 for PC and Visual Studio for Mac (happens in both)
  • Platform Target Frameworks:
    • iOS: latest
    • Android: latest
    • UWP: DNA
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices: Any iOS Device

Screenshots

Reproduction Link

chuckgiddens avatar Jan 17 '22 18:01 chuckgiddens

Getting the same error.

slatlas avatar Oct 03 '22 07:10 slatlas

I have the same problem with new Uri($"ms-outlook://compose?..)

mike-a-ellis avatar Nov 22 '22 21:11 mike-a-ellis

I had the same issue with an google maps request. Solved it by deleting whitespaces in url

KrizCologne avatar Nov 30 '22 08:11 KrizCologne

I had the same issue with an google maps request. Solved it by deleting whitespaces in url

What did you replace the whitespaces with ?

mike-a-ellis avatar Nov 30 '22 13:11 mike-a-ellis

I had the same issue with an google maps request. Solved it by deleting whitespaces in url

What did you replace the whitespaces with ?

Nothing, I just removed them.

KrizCologne avatar Nov 30 '22 15:11 KrizCologne

Try replacing the whitespace with + sign, for example for sign in with google scopes you can separate the scopes with ++ instead of double whitespaces.

tmsal avatar Sep 24 '23 09:09 tmsal