Receive URL in Ionic for ios

后端 未结 6 1866
逝去的感伤
逝去的感伤 2021-02-02 11:11

I am using ionic framework. I\'m trying to set up a way to receive a url from another app. Like, you are in browser, click share, and send the link to another app (my app). I fo

6条回答
  •  野的像风
    2021-02-02 11:47

    Hope this vanger's post helps you.

    In iOS to open any application you need to know which URLs schemes supported by this app.

    For example, you can open email-writer by url like "mailto:aaa@bbb.com". But the thing is in application you can declare your own scheme. For example in App1 you can declare scheme like "my-app1-scheme". And in your second app you will need to open URL "my-app1-scheme://" and your App1 will be opened.

    And I just found this plugin that allows you to do this in simpler way: https://github.com/EddyVerbruggen/Custom-URL-scheme

提交回复
热议问题