Denise
Denise

Reputation: 131

Whatsapp sharing doesn't work on IOS

I'm developing an app across Gluon Mobile plugin on JavaFX and I integrated a whatsapp sharing, but when I try to use it on IOS doesn't work, on Android device the list of whatsapp contacts are displayed and the function works correctly. To implement that, after some researches,I added on .plist file this key:

<key>LSApplicationQueriesSchemes</key>
    <array>
          <string>whatsapp</string>

and I used this code to open whatsapp from browser:

String whatsappUrl = "whatsapp://send?text=\\"; service.launchExternalBrowser(whatsappUrl+ myUrl);

where myUrl is the url that I want to join by whatsapp.

Can anyone helps to solve this problem on IOS? Thank you in advance.

Upvotes: 1

Views: 1376

Answers (1)

Denise
Denise

Reputation: 131

I solved, the error was in the prefix whatsapp://send?text=\ , I changed it in whatsapp://send?text= and it works.

Upvotes: 0

Related Questions