How to use Custom URL in embedded integration

It requires:

  • adaptation of AndroidManifest.xml
  • adding function onNewIntent into the main activity

AndroidManifest.xml adaptation

  • add the following atribute to the main activity

    android:launchMode="singleTask"
  • add the following intent filter to the main activity

    <intent-filter>
       <data android:scheme="com.sygic.aura"></data>
       <action android:name="android.intent.action.VIEW" ></action>
       <category android:name="android.intent.category.BROWSABLE" ></category>
       <category android:name="android.intent.category.DEFAULT" ></category>
    </intent-filter>

Main activity code adaptation

@Override
protected void onNewIntent(Intent intent) {
    ((SygicFragmentSupportV4)mFragment[0]).onNewIntent(intent);
}