digitalpoint
Well-known member
I guess some browsers/operating systems know if you already installed the app. I was more talking about iOS where apps are sandboxed from each other.
Looks likes that’s going to be built into the next version of XenForo, so won’t be needed in this addon, just FYI.Feature request....
An option to upload my own version of the "How to install this app on IOS video".
One that is not XenForo but my actual website as not to confuse people why the instruction shows a completely different forum.
This adds an option to specify JSON you want to merge into the web application manifest. This allows you to edit existing properties as well as add new properties (what you specify to merge into the manifest file takes precedent over what XenForo generates by default). Note: the option is an "advanced" option, so you need to show advanced options to see it.
As an example, say you had an older version of XenForo (<2.2.13) where thedisplay
property wasn't set to...
This is a pretty good reference:very helpful. though i would need to read through the available options to make use of it. i have no idea what screenshot does for instance. i did originally want to have a different homepage for pwa which i suppose should be doable with this addon. thanks for this update!
It’s a known bug in Chrome on Android.i am just confused why this forum rotates to landscape if my orientation is locked
"orientation": "any",
which specs defines as The screen can be rotated by the user to any orientation allowed by the device's operating system or by the end-user.
. This parameter is completely missing from my own manifest file so I guess that explains why it follows the device's setting! Default
might be more suitable option I suppose. I suppose I can test the different options on my own site and see how they change the behavior. "orientation": "any"
is what's used in shipping versions of XenForo. I'm not sure about older versions, but if you are using the latest version of XenForo and you don't have that, you have something altering it. If you look in the XF\WebManifestRenderer.php file, it's a static property (there's no logic to use it only sometimes or change the value based on anything... it's always there).$manifest['orientation'] = 'any';
This is exactly the line that's causing the issue, it was added in 2.2.13.Well"orientation": "any"
is what's used in shipping versions of XenForo. I'm not sure about older versions, but if you are using the latest version of XenForo and you don't have that, you have something altering it. If you look in the XF\WebManifestRenderer.php file, it's a static property (there's no logic to use it only sometimes or change the value based on anything... it's always there).
PHP:$manifest['orientation'] = 'any';
- Added ability to send push notices to users (Admin -> Communications -> Push users)
- New PWA option: Enable debugging (you are welcome to enable this, but it was intended for me. It spews stuff to your server error log... but feel free)
- Logs changes to user push subscriptions
- Logs web push server errors
- Delete
push_subscription_updated
session cookie when a new session is created (causes push subscription endpoint to be updated if old one...
"orientation": "any"
by just using this add-on?You can't remove an option, it lets you add any option as well as change the value of any option.How do you guys apply this add-on patch to remove this code"orientation": "any"
by just using this add-on?
"orientation": null
, but I don't know what that would actually do.I haven't tested it, but according to the spec, setting "orientation" to any value that isn't explicitly allowed is the same as setting it to nothing at all. Maybe I'm reading it wrong, but that's how I read it, so you could set it to null and see what happens.How do you guys apply this add-on patch to remove this code"orientation": "any"
by just using this add-on?
To process the orientation member, given ordered map json and ordered map manifest:
- If json["orientation"] doesn't exist or json["orientation"] is not a string, return.
- If json["orientation"] doesn't contain any of the orientation values, return.
- Set manifest["orientation"] to json["orientation"].
Maybe... like I said, I haven't tried it (I don't have any issues with orientation and don't have an Android device to test if it fixes whatever is broken). But according to the spec that might be the same as not having it.So this might do it?
JSON:{ "orientation": null }
Thank you.
Stupid question incoming…Do I need to reinstall the PWA for any of these changes to take effect?digitalpoint updated [DigitalPoint] PWA with a new update entry:
New thingies...
Read the rest of this update entry...
No, you do not.I do
Stupid question incoming…Do I need to reinstall the PWA for any of these changes to take effect?![]()
We use essential cookies to make this site work, and optional cookies to enhance your experience.