Content disappers after '&' character in the phone's default SMS

无人久伴 提交于 2020-03-05 06:06:10

问题


I have a problem.

Message content after '&' character disappears when open using the phone's default SMS application. Here is message format:

xxxx
https://example.com/api/v1/ExecDynamicLink?param=abc&openExternalBrowser=1
yyyy
&openExternalBrowser=1
yyyy

is disappears. So I want to pass all content to SMS application. Here my code:

Linking.openURL(`sms:?body=${encodeURIComponent(message)}`);

Can someone give me a solution? Thank you!


回答1:


Try using &, this will show an '&'



来源:https://stackoverflow.com/questions/58113701/content-disappers-after-character-in-the-phones-default-sms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!