PhoneGap - Open external application

前端 未结 4 993
温柔的废话
温柔的废话 2020-12-31 13:15

I am developing a PhoneGap App, All what I need is to open an external application.

e.g. my app namespace is com.demo.app1 and I need to open the <

4条回答
  •  灰色年华
    2020-12-31 14:02

    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/LaunchMyApp-PhoneGap-Plugin

提交回复
热议问题