rediriger les visiteurs de mon site vers mon application mobile
Bonjour,
j'ai développé récemment une application Android et je l'ai publiée sur google play, et je veux rediriger automatiquement mes internautes naviguant à partir d'un mobile vers mon application mobile.
j'ai déjà fait ce code, au niveau du site :
Code:
1 2
| if (isAndroid) {
window.location = 'intent://profil#Intent;package=LeNomDuPackage;scheme=LeNomDuPackage;end;';} |
et dans le AndroidManifest.xml :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="LeNomDuPackage"
android:versionCode="2"
android:versionName="2.0" >
<application ...>
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<!-- this makes it available to the launcher -->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!-- this makes it openable with browser -->
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.BROWSABLE" />
<!-- Accepts URIs that begin with "http://www.appconverteo.com/application -->
<data android:scheme="http"
android:host="www.monsite.com"
android:pathPrefix="/application" />
</intent-filter>
</activity> |
Quand je vais sur le site web, il me redirige vers la page de téléchargement de l'application même si elle est déjà téléchargée.
Ce que je veux : c'est de lancer directement l'application :D
Aidez-moi s'il vous plait :kiss: