小编Moh*_*edi的帖子

iOS PWA 启动画面

我尝试使用以下代码为我的 PWA 创建启动画面:

<meta name="mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-touch-fullscreen" content="yes"/>
<meta name="apple-mobile-web-app-title" content="Snappfood"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="#ffffff"/>
<link rel="apple-touch-startup-image" href="/splash/launch-640x1136.png" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"/>
<link rel="apple-touch-startup-image" href="/splash/launch-750x1334.png" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"/>
<link rel="apple-touch-startup-image" media="screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="/splash/launch-2436x1125.png"/>
<link rel="apple-touch-startup-image" href="/splash/launch-1242x2208.png" media="(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)"/>
<link …
Run Code Online (Sandbox Code Playgroud)

manifest reactjs progressive-web-apps

6
推荐指数
0
解决办法
439
查看次数

如何获得instagram api的access_token

我正在开发一个phonegap应用程序.我正在尝试获取从instagram生成的access_token.问题在于,如何从redirect_uri获取此令牌!?我没有自己实现的服务器,所以我应该使用什么样的redirect_uri来获取我的应用程序中的令牌.

instagram cordova instagram-api

5
推荐指数
1
解决办法
179
查看次数

在 react-router-dom 页面更改时滚动到顶部

我正在react-router-dom用于实现我的 reactjs 应用程序的路由!但是我对此有一个问题,在该问题中我找不到任何可在页面更改时滚动到顶部的有效解决方案。有谁能够帮助我???

这是我的路由代码段:

    <BrowserRouter  basename={basename}> 
          <Switch>
                    <MobilePage hasNav navType="primary" exact path={`/restaurant`} component={VendorList} />
                    <MobilePage hasNav navType="primary" path={`/restaurant/:vendorCode`} component={VendorDetails} /> 
          </Switch>
    </BrowserRouter>
Run Code Online (Sandbox Code Playgroud)

javascript reactjs react-router-dom

3
推荐指数
1
解决办法
4355
查看次数