NSWidgetExtensionContext openURL Swift

后端 未结 4 1645
滥情空心
滥情空心 2021-01-12 15:08

I have been attempting to implement a button to open my iOS app from its widget. I realize this issue has been beaten to death on the forums but I cannot find explanation wi

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-12 15:50

    Also you should check if you are using any not allowed character for your url scheme. Maybe it is not your case but I was using this and it was wrong:

    my_AppName
    

    instead this finally worked :)

    myAppName
    

    as said here, the scheme must begin with alphanumeric character and it can contain only alphanumeric characters, +, - and .

提交回复
热议问题