Customize the Manifest and GameActivity with scheme "http://sudoku.secuso.org".

Make sure that WhatsApp accepts this as a valid link.
This commit is contained in:
ErikWaegerle 2020-07-16 00:50:49 +02:00
parent 0ccb20ad19
commit a538517900
2 changed files with 3 additions and 3 deletions

View file

@ -55,14 +55,14 @@
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" /> <category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http" <data android:scheme="http"
android:host="sudoku" /> android:host="sudoku.secuso.org" />
</intent-filter> </intent-filter>
<intent-filter > <intent-filter >
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" /> <category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="sudoku" /> <data android:scheme="sudoku.secuso.org" />
</intent-filter> </intent-filter>
</activity> </activity>

View file

@ -65,7 +65,7 @@ public class GameActivity extends BaseActivity implements NavigationView.OnNavig
public static final String URL_SCHEME_WITHOUT_HOST = "sudoku"; public static final String URL_SCHEME_WITHOUT_HOST = "sudoku";
public static final String URL_SCHEME_WITH_HOST = "http"; public static final String URL_SCHEME_WITH_HOST = "http";
public static final String URL_HOST = "sudoku"; public static final String URL_HOST = "sudoku.secuso.org";
GameController gameController; GameController gameController;
SudokuFieldLayout layout; SudokuFieldLayout layout;