EddyVerbruggen / EddyVerbruggen/nativescript-appavailability

iOS invalid input url

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
19
Forks
6
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.