iOS9: canOpenURL returning false for WhatApp's url scheme

后端 未结 4 1893
一个人的身影
一个人的身影 2020-12-31 08:39

In my current project I need to share text on whatsapp from iOS app.

Here is my code to share text on whatsapp:

NSURL *whatsappURL = [NSURL URLWithSt         


        
4条回答
  •  没有蜡笔的小新
    2020-12-31 08:45

    For me the issue was because I was using URL types instead of LSApplicationQueriesSchemes

    and it work only for LSApplicationQueriesSchemes

    This will not work

    This will work

提交回复
热议问题