mirror of https://github.com/jitsi/jitsi-meet
The desired behavior of the button 'Start a conference' / 'Join the conversation' is to launch the mobile app if installed; otherwise, do nothing i.e. continue to display UnsupportedMobileBrowser. Anyway, we may change our minds about allowing the user to continue in a supported mobile browser so preserve the source code that enables that but give it more appropriate naming.pull/1272/head
parent
a70beaf7b6
commit
88eabf23f4
@ -1,12 +1,18 @@ |
||||
import { Symbol } from '../base/react'; |
||||
|
||||
/** |
||||
* The type of the Redux action which signals that a mobile browser page |
||||
* is shown. |
||||
* The type of the Redux action which signals that the React Component |
||||
* UnsupportedMobileBrowser which was rendered as a promotion of the mobile app |
||||
* on a browser was dismissed by the user. For example, the Web app may possibly |
||||
* run in Google Chrome on Android but we choose to promote the mobile app |
||||
* anyway claiming the user experience provided by the Web app is inferior to |
||||
* that of the mobile app. Eventually, the user may choose to dismiss the |
||||
* promotion of the mobile app and take their chances with the Web app instead. |
||||
* If unused, then we have chosen to force the mobile app and not allow the Web |
||||
* app in mobile browsers. |
||||
* |
||||
* { |
||||
* type: MOBILE_BROWSER_PAGE_IS_SHOWN |
||||
* type: DISMISS_MOBILE_APP_PROMO |
||||
* } |
||||
*/ |
||||
// eslint-disable-next-line max-len
|
||||
export const MOBILE_BROWSER_PAGE_IS_SHOWN = Symbol('MOBILE_BROWSER_PAGE_IS_SHOWN'); |
||||
export const DISMISS_MOBILE_APP_PROMO = Symbol('DISMISS_MOBILE_APP_PROMO'); |
||||
|
@ -1,16 +1,22 @@ |
||||
import { MOBILE_BROWSER_PAGE_IS_SHOWN } from './actionTypes'; |
||||
import { DISMISS_MOBILE_APP_PROMO } from './actionTypes'; |
||||
import './reducer'; |
||||
|
||||
/** |
||||
* Returns an action that mobile browser page is shown and there is no need |
||||
* to show it on other pages. |
||||
* Returns a Redux action which signals that the UnsupportedMobileBrowser which |
||||
* was rendered as a promotion of the mobile app on a browser was dismissed by |
||||
* the user. For example, the Web app may possibly run in Google Chrome |
||||
* on Android but we choose to promote the mobile app anyway claiming the user |
||||
* experience provided by the Web app is inferior to that of the mobile app. |
||||
* Eventually, the user may choose to dismiss the promotion of the mobile app |
||||
* and take their chances with the Web app instead. If unused, then we have |
||||
* chosen to force the mobile app and not allow the Web app in mobile browsers. |
||||
* |
||||
* @returns {{ |
||||
* type: MOBILE_BROWSER_PAGE_IS_SHOWN |
||||
* type: DISMISS_MOBILE_APP_PROMO |
||||
* }} |
||||
*/ |
||||
export function mobileBrowserPageIsShown() { |
||||
export function dismissMobileAppPromo() { |
||||
return { |
||||
type: MOBILE_BROWSER_PAGE_IS_SHOWN |
||||
type: DISMISS_MOBILE_APP_PROMO |
||||
}; |
||||
} |
||||
|
Loading…
Reference in new issue