Skip to content

Commit 83a8a31

Browse files
authored
Merge pull request #1003 from OneSignal/feat/add_web_app_manifest_for_ios_push
[Sandbox] Add web app manifest for ios push testing (for main branch)
2 parents 95437b4 + fd0ea96 commit 83a8a31

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

express_webpack/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
<!DOCTYPE html>
22
<html lang="en">
3+
<!-- This Web Application Manifest is required for iOS 16.4 WebPush -->
4+
<link rel="manifest" href="manifest.json" />
5+
36
<!-- Some sites use this HTML base tag to change the origin for all relative links.
47
Ensure OneSignal SDK correctly handles this. -->
5-
<base href="https://www.example.com/">
8+
<!-- NOTE: This does not work with the relative pathed manifest.json above. -->
9+
<!--<base href="https://www.example.com/"> -->
610
<script src="sdks/Dev-OneSignalSDK.js" defer=""></script>
711
<script>
812
// NOTE: Uncomment and open site in Safari on macOS 13+ to simulate

express_webpack/manifest.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://json.schemastore.org/web-manifest-combined.json",
3+
"name": "OneSignal Sandbox WebSDK WebApp",
4+
"short_name": "OSWebAppSandbox",
5+
"display": "standalone",
6+
"background_color": "#ff0000",
7+
"description": "Add this WebApp to your iOS 16.4 homescreen then open it to test WebPush!"
8+
}

0 commit comments

Comments
 (0)