diff --git a/app/manifest.json b/app/manifest.json index 2862bed8..4b2c977b 100644 --- a/app/manifest.json +++ b/app/manifest.json @@ -4,9 +4,6 @@ "version": "0.5.5", "short_name": "Telegram", "manifest_version": 2, - "display": "standalone", - "orientation": "portrait", - "theme_color": "#497495", "app": { "background": { "scripts": ["js/background.js"] diff --git a/app/manifest.webapp.json b/app/manifest.webapp.json index 705204d3..eda8e5c0 100644 --- a/app/manifest.webapp.json +++ b/app/manifest.webapp.json @@ -1,12 +1,13 @@ { "name": "Telegram", "description": "Telegram Web App.\nMore info & source code here: https://github.com/zhukov/webogram", - "version": "0.5.5", "short_name": "Telegram", "display": "standalone", - "orientation": "portrait", "theme_color": "#497495", "gcm_sender_id": "122867383838", + "start_url": "./?utm_source=web_app_manifest", + "scope": "/", + "background_color": "#fff", "icons": [ { "src": "img/icons/icon16.png", @@ -50,8 +51,19 @@ }, { "src": "img/icons/icon.svg", - "type": "image/svg", + "type": "image/svg+xml", "sizes": "513x513" } + ], + "related_applications": [ + { + "platform": "play", + "id": "org.telegram.messenger", + "url": "https://telegram.org/dl/android?ref=webmanifest" + }, + { + "platform": "itunes", + "url": "https://telegram.org/dl/ios?ref=webmanifest" + } ] } diff --git a/gulpfile.js b/gulpfile.js index 07d511a3..38f8d293 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -76,7 +76,7 @@ gulp.task('copy-images', function () { gulp.task('copy', function () { return es.concat( - gulp.src(['app/favicon.ico', 'app/favicon_unread.ico', 'app/manifest.webapp', 'app/manifest.json', 'app/**/*worker.js']) + gulp.src(['app/favicon.ico', 'app/favicon_unread.ico', 'app/manifest.webapp', 'app/manifest.webapp.json', 'app/manifest.json', 'app/**/*worker.js']) .pipe(gulp.dest('dist')), gulp.src(['app/img/**/*.wav']) .pipe(gulp.dest('dist/img')),