-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add
app
parameter to cozy-intent
's openApp
method
Sender can now send app data to the native host in order to open the native app when available instead of its webview version
- Loading branch information
Showing
2 changed files
with
23 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** App's description resulting of its manifest.webapp file */ | ||
export interface AppManifest { | ||
/** The app's slug */ | ||
slug: string | ||
|
||
/** The app's mobile information */ | ||
mobile: AppManifestMobileInfo | ||
} | ||
|
||
/** App's mobile information. Used to describe the app scheme and its store urls */ | ||
export interface AppManifestMobileInfo { | ||
/** The app's URL scheme */ | ||
schema: string | ||
|
||
/** The app's id on Google PlayStore */ | ||
id_playstore: string | ||
|
||
/** The app's id on Apple AppStore */ | ||
id_appstore: string | ||
} |
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,4 +1,6 @@ | ||
import { AppManifest } from './applications' | ||
|
||
export type NativeMethodsRegister = { | ||
logout: () => Promise<void> | ||
openApp: (href: string) => Promise<void> | ||
openApp: (href: string, app: AppManifest) => Promise<void> | ||
} |