forked from medic/cht-android
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds intent for fixed_app_url so app
When any link that has the same scheme and host as the branded flavor is clicked on the device, the user will have the option to open the link in the medic app. medic/cht-core#6380
- Loading branch information
1 parent
8e092e0
commit a237d11
Showing
30 changed files
with
76 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">BRAC</string> | ||
<string name="fixed_app_url">https://brac-ug.app.medicmobile.org</string> | ||
<string name="app_host">brac-ug.app.medicmobile.org</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">CiC Tijax</string> | ||
<string name="fixed_app_url">https://cic-guatemalav2.app.medicmobile.org</string> | ||
<string name="app_host">cic-guatemalav2.app.medicmobile.org</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">CMMB MHealth - Kitui</string> | ||
<string name="fixed_app_url">https://cmmb-kenya.app.medicmobile.org</string> | ||
<string name="app_host">cmmb-kenya.app.medicmobile.org</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">Yayasan Ekoturin</string> | ||
<string name="fixed_app_url">https://ebpp-indonesia.app.medicmobile.org</string> | ||
<string name="app_host">ebpp-indonesia.app.medicmobile.org</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">Hope Through Health</string> | ||
<string name="fixed_app_url">https://hth-togo.app.medicmobile.org</string> | ||
<string name="app_host">hth-togo.app.medicmobile.org</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">Living Goods</string> | ||
<string name="fixed_app_url">https://lg.app.medicmobile.org</string> | ||
<string name="app_host">lg.app.medicmobile.org</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">CHV - Toolkit</string> | ||
<string name="fixed_app_url">https://kisii-an.app.smarthealth.livinggoods.org</string> | ||
<string name="app_host">kisii-an.app.smarthealth.livinggoods.org</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">Living Goods (Innovation Network)</string> | ||
<string name="fixed_app_url">https://lg-innovation-ke.app.medicmobile.org</string> | ||
<string name="app_host">lg-innovation-ke.app.medicmobile.org</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">Living Goods (Innovation - HIVST)</string> | ||
<string name="fixed_app_url">https://lg-innovation-hivst-facility-ke.app.medicmobile.org</string> | ||
<string name="app_host">lg-innovation-hivst-facility-ke.app.medicmobile.org</string> | ||
</resources> |
2 changes: 1 addition & 1 deletion
2
src/livinggoods_innovation_ke_supervisor/res/values/strings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">Living Goods Supervisor (Innovation Network)</string> | ||
<string name="fixed_app_url">https://lg-innovation-facility-ke.app.medicmobile.org</string> | ||
<string name="app_host">lg-innovation-facility-ke.app.medicmobile.org</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">Living Goods</string> | ||
<string name="fixed_app_url">https://lg-kenya.app.medicmobile.org</string> | ||
<string name="app_host">lg-kenya.app.medicmobile.org</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/main/java/org/medicmobile/webapp/mobile/AppUrlIntentActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.medicmobile.webapp.mobile; | ||
|
||
import android.app.Activity; | ||
import android.content.Intent; | ||
import android.os.Bundle; | ||
import android.net.Uri; | ||
|
||
import static org.medicmobile.webapp.mobile.BuildConfig.DEBUG; | ||
import static org.medicmobile.webapp.mobile.MedicLog.trace; | ||
|
||
public class AppUrlIntentActivity extends Activity { | ||
@Override public void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
Intent appLinkIntent = getIntent(); | ||
Uri appLinkData = appLinkIntent.getData(); | ||
|
||
if(DEBUG) trace(this, "TOKEN LOGIN=%s", appLinkData.toString()); | ||
|
||
startActivity(new Intent(Intent.ACTION_VIEW, appLinkData, this, EmbeddedBrowserActivity.class)); | ||
finish(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">Medic Mobile (demo)</string> | ||
<string name="fixed_app_url">https://demo.dev.medicmobile.org</string> | ||
<string name="app_host">demo.dev.medicmobile.org</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">MOH Siaya Black</string> | ||
<string name="fixed_app_url">https://moh-kenya-siaya.app.medicmobile.org</string> | ||
<string name="app_host">moh-kenya-siaya.app.medicmobile.org</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">MOH Siaya Green</string> | ||
<string name="fixed_app_url">https://moh-kenya-siaya.app.medicmobile.org</string> | ||
<string name="app_host">moh-kenya-siaya.app.medicmobile.org</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">MOH Siaya Red</string> | ||
<string name="fixed_app_url">https://moh-kenya-siaya.app.medicmobile.org</string> | ||
<string name="app_host">moh-kenya-siaya.app.medicmobile.org</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">MOH Siaya White</string> | ||
<string name="fixed_app_url">https://moh-kenya-siaya.app.medicmobile.org</string> | ||
<string name="app_host">moh-kenya-siaya.app.medicmobile.org</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">ASA-MALI</string> | ||
<string name="fixed_app_url">https://supervisor-moh-mali.app.medicmobile.org</string> | ||
<string name="app_host">supervisor-moh-mali.app.medicmobile.org</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">Jamii ni Afya</string> | ||
<string name="fixed_app_url">https://moh-zanzibar.app.medicmobile.org</string> | ||
<string name="app_host">moh-zanzibar.app.medicmobile.org</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">Darasa</string> | ||
<string name="fixed_app_url">https://moh-zanzibar.dev.medicmobile.org</string> | ||
<string name="app_host">moh-zanzibar.dev.medicmobile.org</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">muso</string> | ||
<string name="fixed_app_url">https://muso-mali.app.medicmobile.org</string> | ||
<string name="app_host">muso-mali.app.medicmobile.org</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">YendaNafe</string> | ||
<string name="fixed_app_url">https://pih-malawi.app.medicmobile.org</string> | ||
<string name="app_host">pih-malawi.app.medicmobile.org</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">YendaNafe Supervisor</string> | ||
<string name="fixed_app_url">https://pih-malawi.app.medicmobile.org</string> | ||
<string name="app_host">pih-malawi.app.medicmobile.org</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">Medic Mobile - Simprints</string> | ||
<string name="fixed_app_url">https://simprints.app.medicmobile.org</string> | ||
<string name="app_host">simprints.app.medicmobile.org</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">Kenya Covid-19 Tracker</string> | ||
<string name="fixed_app_url">https://tracing-covid19.health.go.ke</string> | ||
<string name="app_host">tracing-covid19.health.go.ke</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">Village Health Works Burundi</string> | ||
<string name="fixed_app_url">https://villagehealthworks-burundi.app.medicmobile.org</string> | ||
<string name="app_host">villagehealthworks-burundi.app.medicmobile.org</string> | ||
</resources> |