Ionic 5 capacitor-community/privacy-screen On BrowserStack- Showing black screen only - capacitor

I am using capacitor-community/privacy-screen to hide sensitive data, but when I use BrowserStack emulator I get a black screen. I would greatly appreciate any assistance.

BrowserStack offers real devices that are not simulators or emulators.
Could you confirm with your developer to revisit the code to disable the security flag which they may have enabled in the manifest file or set programmatically in the code.
The class that is mostly being used to set a security flag:
WindowManager.LayoutParams.FLAG_SECURE(https://developer.android.com/reference/android/view/WindowManager.LayoutParams)

Related

Set default app as ON in Active Screen ios xcode

Now i am using swift to code my app. I used share extentions and it runs well.
But I have a problem.
app set default value in active screen as OFF. I want to set default as ON. Do you have any solution?
Thank you
By default, share extensions are turned off until the user manually enables them with the More... menu. That's just how iOS works and there is nothing you can do about it, other than instruct your user to open the share dialog and hit More to enable your app.
Only apps like Vimeo which have an agreement with Apple can default to visible in the share menu.
Source + more information.

Unity ads displaying an ad example and not the real ads

http://prntscr.com/cv3hc3 and http://prntscr.com/cv3hh0 seems to be perfectly set up, while my ads still display the "unity ads" example. How can I display real ads and get money from it?
Turning test mode in the UnityAds dashboard on and back off again did it!
Have you set test mode to false? this is from the Unity blog:
If we are running our project in the
editor we will see a generic billboard ad. If we are running this on
device and test mode is set to true (see above) then we will see a
placeholder ad. Finally, if we are on device and test mode is false we
will see a real live ad.
source: https://blogs.unity3d.com/2015/04/09/integrating-unity-ads/
I am not sure if your build target is properly set up, but this is a point worth mentioning as well:
NOTE: Since ads are currently only supported for iOS and Android, your
editor will have to be targeting one of those platforms in order to
see any test ads. Before going further you may want to switch your
platform to either iOS or Android in the Unity build settings
(File->Build Settings)
source https://blogs.unity3d.com/2015/04/09/integrating-unity-ads/
just uncheck the TestMode in services then try to build the app and install it in real devices then it works great.

iPhone not appearing in Develop menu in Safari

On my "Develop" menu, in Safari, the iPhone no longer appears after updating Safari to the latest version, making it impossible to inspect and debug sites and apps.
I restarted the iPhone, killed and relaunched Safari, restarted my Mac too, but the issue is still there. Affects both Safari mobile and phonegap applications.
Anyone experienced the same problem?
FWIW, I tried all of these suggestions, and it worked briefly after resetting Privacy & Location settings but stopped working immediately after.
What ended up working as a long term solution was to turn both WiFi and Bluetooth off on the iPhone while connected to the Mac.
Turns out, my issue was that the update to the latest iOS version disabled the "Web Inspector" settings on my iPhone.
To re-enable it, go to Settings > Safari > Advanced.
In our case we needed to reset the trust between iPhone & Mac. From iPhone Settings > General > Reset choose reset Privacy & Location and also Network Settings. The phone reboots, we reconnected to the laptop, tapped Yes to Trust this Computer and now Mac Safari can once again debug mobile Safari.
What helped for me was the following:
Open Xcode
On the Menu: Window -> Devices and Simulators
Check the Connect via network checkbox. (If it is already selected then uncheck it and re-check)
In my case, resetting only Privacy & Location did the job (but only temporarily, see update below!).
Try only resetting that before resetting your whole network settings for nothing!
Almost immediately after reset, the "Trust this Computer" popup appeared and after trusting my device appeared in the Develop menu.
Update:
I kept having regular issues with this (having to reset it multiple times per day, restarting Safari and a combination of other things) until I found the real fix here:
https://stackoverflow.com/a/58654871/167983
#BearSnowstorm:
One more tip to try - after trying many of the above suggestions I
turned off "Sync with this iPhone over Wi-Fi" in iTunes.
Voila! Got my iPhone into the Develop menu!
(for context, this is in Mojave 10.14.6, iOS 13.1.3, Safari 13.0.3)
My comment on that answer describes the same thing but updated for Catalina:
I had recurring issues with this and the only way I could make it work (sometimes) was to reset Location & Privacy, close Safari, unplug my device, etc. It was always a temporary fix though and the issues would come back very quickly. This however seems to work more permanently! I confirm what #Florian said: the setting was off by default for me, turning it on then off (after letting the sync finish) worked. On Catalina, this setting is named "Show this iPhone when on Wi-Fi" under General when you select your iDevice in the Finder.
Reading that answer my instinct was that it could not possibly make a difference, but it does! I have had zero issues since I did this. Try it!
Some cables (even official Apple Lightning Connector) don't support this feature because of some damage inside. My Lightning Connector was able to charge the iPhone but prevented to use dev tools on the Mac. I used another cable to successfully connect to dev tools.
In my case, this was totally a network issue.
Everything works well when I used 4G network.
If I use my wi-fi, safari failed to detect my device.
Turning off wifi on the iPhone allows it to appear in the develop menu.
The best and permanent solution in Catalina is to open a new Finder window, select in sidebar, then check 'Show this iPhone when on wifi'.
To disable caches (and to avoid constantly having to delete website data) open your site in a new Private Window. Changes to stylesheets will then update as normal.
Seems the front ports of my Mac Pro were not working correctly, plugged the cable on the keyboard port and I was able to connect to the dev tools.
I know all these tricks but after installing Catalina none of them worked. What DID work for me was Settings > Developer > Clear Trusted Computers. Strangely, the phone appears in the Safari Developer menu on the Mac, but the phone never asked to re-trust the computer!
The phone disappears again sometimes, but the same trick gets it back.
MacOS and iOS still look beautiful, but both are turning into a messy pigsty underneath. I sometimes wonder if Apple still even cares. :(
I've tried with the reset of Privacy and Location but it didn't work. What worked for me was disabling the hotspot from the phone. With the hotspot active Safari doesn't shows the iPhone in the developer menu.
Crazy but true, when i disconnected bluetooth and tried to check under develop option, connected device was shown.
In my case the only solution was to reboot my Macbook... stupid but effective solution
My solution was simply to move the cable to a different USB port.
reboot fix everything,works for me.
In my case, I was working from home and had a VPN tunnel to my work that was redirecting all traffic through my company's network. Disabling that revealed the phone in the Develop menu again.
As an alternative, connecting with VPN and disabling WIFI and Bluetooth works.

Why can't I use the Javascript Log console properly with iOS 7?

I desperately need to use the Safari console on iOS 7 to debug a site. I've hooked my iPhone (5) displaying the site to my Mac. I've started Safari (v6.0.5), gone to the Develop menu, and started the web inspector for the site I'm on. I can see the list of elements on the site, which confirms I'm inside the correct inspector.
From what I've read, the logs to the console should be displayed inside the Logs section, and from what I've found inside Apple's iOS Safari documentation, I should be able to view logs inside there. For me though, nothing is ever logged. I can't even access any variables or functions; when I type anything in (e.g. document.title), it just 'logs' exactly what I've written, with the text I've just typed still in the input field. However, typing something that causes the browser on the device to show life works (e.g. alert('hi'); displays the alert dialog box on the device).
Can anyone help? This issue we have is only happening on iOS, and there's barely any other way to find what's going wrong. Is this problem limited to iOS 7?
I can confirm that this is an iOS 7 issue. The console.log statement works fine when using an iOS 6 or below device, but with iOS 7 won't show at all :(
Apple == new Microsoft();
Only minutes after posting this I got logging to work again, not sure if this is required, but it seemed to do magic for me:
Connect iOS 7 device
Open XCode
Setup device for development
Connect using Safari
Presto, I can see log messages again?!? (Mind you, I had not made any code-changes)
I had the same problem, just after updating to iOS 7. The solution was to update safari to the latest version for developers, which is version 6.1.

Direct someone to the OTA updates

Basically I am trying to put a button in my app which will warn the user if they are running an iOS version with known issues. When pressed it directs them to the OTA updates part of settings. Is this possible?
I have the code do detect if the user is using an old iOS version, however, I'm not quite sure how to switch to the settings. Does anybody have any code I can use? Much appreciated.
I think you can create a special prefs link. Check out this tutorial: No jailbreak necessary: How to quickly access iOS settings on your iPad, iPhone or iPod
prefs:root=General&path=SOFTWARE_UPDATE_LINK