How to open external native app from android and iOS?

How to open external native app from android and iOS?
0.0 0



I would like to open an android or iOS app from another app.

For example,
FirstApp opens SecondApp. Both native for both iOS and Android. How to do this for Cocos Creator?

I’ve searched around the only thing similar is cc.sys.openUrl which opens a browser but I want to open a specific app.

Here are some reference to show what I’m trying to do from Native. Also, an example from another game engine.

In native Android example:

    android:label="@string/app_name" >
        <action android:name="com.mycompany.DO_SOMETHING" />

Then, in the ‘calling’ app, use…

Intent intent = new Intent();

For iOS, a full example is here:

In Unity, can do it like this



This might be a possible solution:
This google cached (Where is the real page? could not find it) page

For iOS:

From the page above:
Using a feature that we can call Java static methods directly in js.

var o = jsb.reflection.callStaticMethod(className, methodName, methodSignature, parameters…)

My question is, does the info on the suggested page still apply? It says its 3 years old and if there is an updated page for this please let me know.