Is there a way I can set visibility of a site page based on "DESKTOP" or "MOBILE".Both a!isNativeMobile and a!isPageWidth do not work on site object.
Discussion posts and replies are publicly visible
If the above two are not working, then I don't think there is a way to do that.
I have tried a!isPageWidth and it is working fine for me. Here "MOBILE" is not the key value. Please refer to the below screenshot. Try using "PHONE"
It is not working irrespective of that. These functions only work on interface level. Is there any way you can suggest to configure visibility of a site page based on the device I am using (Phone or desktop)?
Nope, I have tried at site level. Here I have attached a sample code.
1. Before setting up, the page visibility.
2. Setting up the visibility at the site page level
3. After the setup. Since I have mentioned as PHONE, the report page is not visible to the desktop user.
is it visible on phone ? ... because for me it seems to disappear for both Phone and Desktop.
Yeah, you are correct it's not visible and is not mentioned in the documentation. Can you please raise a support ticket?