I would like to open an android or iOS app from another app.
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:
<activity android:name=".OtherAppActivity" android:label="@string/app_name" > <intent-filter> <action android:name="com.mycompany.DO_SOMETHING" /> </intent-filter> </activity>
Then, in the ‘calling’ app, use…
Intent intent = new Intent();
For iOS, a full example is here: https://stackoverflow.com/questions/419119/launch-an-app-from-within-another-iphone
In Unity, can do it like this https://forum.unity.com/threads/android-ios-launch-from-within-a-unity-app-another-unity-app.222709/