Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

send text from app to social media app (messenger and whatsapp)
Started by carloscosta Feb 25 2019 04:11 AM

- - - - -
3 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

carloscosta

[GLOBAL: userInfoPane.html]
carloscosta
  • Contributor

  • 628 posts
  • Corona SDK

Hi, a client asked me if I could build an app that send a message from his app direct to an accout in facebook messenger and whatsapp.

 

as far as I know I can only use native.showPopup() but those are not what the client wants.

 

I found a plugin from scott that should do what I wanted with message. tried his example, failed bad. created an developer account on facebook followed all the points in corona tutorial still didn't do nothing in the app.

 

anyone done this in corona? or is not possible without native code?

 

Regards,

 

Carlos.



[TOPIC: post.html]
#2

TandG

[GLOBAL: userInfoPane.html]
TandG
  • Contributor

  • 422 posts
  • Corona SDK

Have you tried using deeplinks? E.g.

 

"fb-messenger://share?link=" .. link

"whatsapp://send?text=" .. escapedText
 
They're dependant on the apps being installed on the device, but you can run checks for that easily enough with system.canOpenUrl.


[TOPIC: post.html]
#3

carloscosta

[GLOBAL: userInfoPane.html]
carloscosta
  • Contributor

  • 628 posts
  • Corona SDK

problem with deep links is that they depend on valid variables to work with. if facebook or whatsapp change the name of the variables the buttons will stop working. still i will try this approach in last resource. thanks for the tip.



[TOPIC: post.html]
#4

carloscosta

[GLOBAL: userInfoPane.html]
carloscosta
  • Contributor

  • 628 posts
  • Corona SDK

tried deeplinks, on android 100% success.

on IOS 50%. whatsapp worked, fb-messenger didn't open the conversation with the user i selected in deeplink. just opened the messenger.




[topic_controls]
[/topic_controls]