ANSWERED

Demo Page working but can't get my own code to work.

If I open my app and then go to <https://median.dev/library-ready/> it seems to work fine. But If I add this to my start page it does nothing. // Set screen brightness and statusbar styling as soon as page loads function median_library_ready(){ // Set screen brightness to 80% median.screen.setBrightness(0.8); // Set status bar to light mode, red color, with overlay median.statusbar.set({ 'style':'light', 'color':'80ff0000', 'overlay':true }); } This is just copied off of the example pages so I figured it would work.
ANSWERED

Screenshots is disabled

How to prevent user from taking screenshot/ screen record in my app
ANSWERED

Keep screen on functionality throwing an error on Android

We're using median.screen.keepScreenOn() and median.screen.keepScreenNormal() to control the screen backlight ([doc](https://median.co/docs/keep-screen-on)) and on iOS it works fine, however on Android when calling these functions via the JS bridge, it throws an error: Uncaught TypeError: median.screen.keepScreenOn is not a function Why is that please?
ANSWERED

Payment Page on seperate domain not taking visitor to thank you page after payment made

Website Platform - WordPress Payment Gateway - CashFlow Issue: When a visitor places an order, the payment page loads a hosted payment form on gateway.cashflows/payment. Once payment is complete, it should take the user back to /thank-you. It does this correctly when using the website directly; however, the app takes the user back to /checkout/ even after payment has been made successfully. This results in duplicate payments as it is unclear whether payment has been made. Do you have any guidance on how to resolve this? Thanks
ANSWERED

Location Service Documentation Discrepancy

Should I use median.android.geoLocation.promptLocationServices() or median.android.geoLocation.promptAndroidLocationServices()? According to the documentation found at <https://median.co/docs/location-services>, it specifies median.android.geoLocation.promptLocationServices(). However, in the NPM package, I see median.android.geoLocation.promptAndroidLocationServices(). Which function should I utilize?
ANSWERED

Location Service not working in Android when user select - Ask Every Time

In the realm of Android, when attempting to retrieve the location, upon granting permission with the option "Ask Every Time" selected, the permission dialog fails to reappear subsequently; it functions only once. Still changes or not reflacted in the NPM package Ref - <https://median.readme.io/discuss/65fb25acd46f1300181984c8>
ANSWERED

Sidebar menu blank

``` function median_library_ready() { let sidebarItems = [{ label: "Google", url: "https://google.com", icon: "fas fa-cog" }]; alert('library ready called'); // To prove code runs window.median.sidebar.setItems({"items": sidebarItems, "enabled": true}); } ``` I use the above code based on the sample to try to set the sidebar menu items at runtime. I can see from the alert() that the code runs when page is loaded. But the side-menu is always blank - it shows the app icon, but none of the menu item(s). The design-time menu list is blank. If I add design-time menu items, they show up fine. But it is like the setItems() call is ignored. Whatever is set for the design time list is always displayed for the menu, with setItems() having no apparent effect at all. Is there something else I need to do to set the sidebar menu items?
ANSWERED

Location Service not working in Android when user select - Ask Every Time

In the realm of Android, when attempting to retrieve the location, upon granting permission with the option "Ask Every Time" selected, the permission dialog fails to reappear subsequently; it functions only once.
ANSWERED

Location Services on iOS

Some users refuse to grant access to their location. After denial, the call to 'navigator.geolocation.getCurrentPosition' hang, even when a timeout is configured. Xcode displays the following error: Domain=kCLErrorDomain Code=1. Is there a way to avoid this hang? Thanks!
ANSWERED

It does not appear in the Google Sign in Configuration application

Hello, I created an application and the application is now in the Play Store I created a login via Google Sign in Configuration and it works perfectly on the site But Google Sign-in Configuration In the application, it does not appear at all. For your information, I signed the application and it was verified What is the problem? Is it yours or do I have to wait after signing the application for it to appear?