Skip to content

iOS invalid input url #8

@mrzanirato

Description

@mrzanirato

Hello,

trying to open whatsapp i get this error:

[urloverrides] Error getting URL override for (null): Error Domain=NSOSStatusErrorDomain Code=-50 "invalid input URL" UserInfo={NSDebugDescription=invalid input URL, _LSLine=332, _LSFunction=-[_LSDOpenClient getURLOverrideForURL:newsOnly:completionHandler:]}

if (availableSync("whatsapp://")) { console.log("Apro WhatsApp") //openUrl( (isIOS ? "whatsapp://send?phone=" : "https://api.whatsapp.com/send?phone=") + this.whatsapp_number); if( isIOS ){ openUrl( "whatsapp://send?phone=" + this.whatsapp_number); } else { openUrl( "https://api.whatsapp.com/send?phone=" + this.whatsapp_number); } } else { this.utilityService.showToast( "Whatsapp is not installed" ) }

Any idea?

Thanks

Marco

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions