cordova-plugin-qrscanner not showing up in ios - ionic-framework

I used cordova-plugin-qrscanner for my ionic 2 application. When i click on a tab the scanner will be opened. It works perfectly in android, but in ios the camera is not shown on the screen but it scans blindly. When i change the orientation of the screen the camera is displayed properly.
I tried to reload the page usingwindow.location.reload() but it didnt work.
Thanks in advance.

Related

Flutter app behaving unexpectedly on Oppo A31

Home screen view on the different phone responding in a different manner. As you can see the attached screenshots, its working fine on all iOS devices but in android it working on pixel but in oppo, the screen turns to grey.
Did you try to use Oppo for debugging? Did the code execute as desired? Is it app-release that is not working or app-debug? And are there any unconventional plugins?

Why is the Splash Image Not Displaying?

Why can't I get my Splash Image displayed on a Android device!
I have these kind of settings for Logo image display when the game starts.
If I press the Preview button then the Splash screen is displaying properly.
But in an actual Android build, it doesnt display.
So what is the solution for me?
Your screenshot does not include what platform the settings are for. Make sure you are changing the correct Splash Image setting for the Android platform.

Converting Iphone Screen to Ipad Screen

I created an Iphone app and I am trying to convert them to Ipad screens. I have a login page which was created for Iphone, I tried to change it to Ipad by changing Project Settings screen and changed the emulator. But the Login page looks weird on Ipad Emulator, controls are get stuck to the upper left corner. How can I fix it to look centered on Iphone and Ipad?
here is the screen on xcode
here is the screen on emulator
You need to adjust the autolayout settings for each object.
http://www.raywenderlich.com/20881/beginning-auto-layout-part-1-of-2

iPhone app incorrect autoresizing on iPad

I have developed iPhone app. When i try to run this app in iPad simulator, it doesn't show me 1x/2x zoom button but application autoresize view in wrong way.
I don't want to make ipad native nibs/views so i need to disable autoresing the application.
Can somebody help?
EDIT: In 'Summary' tab, is 'iPhone' selected in the Devices drop-down menu.
EDIT2: When starting application, splash screen loads correnctly in small 1x window, than when firt view loads it switches to full screen.
Go to the Target's settings, 'Summary' tab, and choose 'iPhone' instead of 'Universal' in the Devices drop-down menu.
Go in your Application-Info.plist and check if there is something with iPad.
On a project, I started with doing an app Universal, only developped the iPhone theme. Then, to show to the client a pre-version, I tested on an iPad and the screen was quite reverse (iPhone : Portrait mode, iPad Landscape). I figured that in the Info.plis there was still the iPad : Landscape. Maybe something like that.

Setting Wallpaper (Background image) in iOS Simulator home screen or lockscreen

I was scratching my brains over something when this popped in my mind. Can we set the simulator's home-screen background image to an image of our choice? Case in point is Xcode 3.2.2 simulator 3.1.3.
Certain versions of the simulator appear to support this, not just for the home screen but for the lock screen too (which you get to with Command ⌘+L):
Drag an image from your Mac to the simulator.
Mobile Safari opens. Click and hold the image.
Choose Save Image.
Go to Photos.app, and into the photo album.
Choose your image, and set it as the home screen background like you do on a device.
You may need to restart the simulator.
Note that since this isn't exactly officially supported, it may or may not work for you depending on your version of Xcode or the simulator.
It is possible (again) with the iOS Simulator version 6 (for iOS6).
First, add some images to your photo library. You can do this by using Mobile Safari (either surf the web or drag a local image to the simulator). Then perform a long press and save to camera roll.
Second, open "Photos", select the image and set as Background.
Third, restart the simulator (this irritated me at first, as it doesn't seem to work immediately)
How to do this for the Simulator in 11.4.
Drag and drop a photo on the phone.
Go to photo app and view app.
On the bottom bar you should see 3 icons. Hit the icon with the Arrow coming out of the box like you would AirDrop it to someone.
On the Options panel you should see Use as Wallpaper right below the AirPlay option.
Cheers
Hmm. Probably, since you cannot set backgroundimage on your homescreen(exept from the locked view) on on actual iPhone pre iOS4, you cannot do so in the simulator either.
Dragged the image onto the simulator (iOS 9.3) as #boltclock suggests, but nothing happened. However, I then noticed that the images I dragged were showing up in the Photos app on the simulator. From there I just set the wallpapers the same way that you set them on a physical device. Did not need to restart the simulator.
I thought I wasn't able to do this, but then I dragged the bottom row of options to the left and low and behold, there is the "Set as wallpaper" option.
:-)
Since this is an old question, I want to confirm this works in Simulator 13.2 for the iPhone 13 Pro Max (I'm running it on on macOS 12.2 Monterey).
In the simulator take Safari to the image you want to set as the background
Right click (or 2-finger press-click on trackpad)
Selected "Add to Photo"s from Pop-up menu
Open Photos app, and click the 'sharing' icon (box with up arrow coming out of it)
Scroll the popup upwards until you see the "Use As Wallpaper" menu item (if you have a Magic Trackpad, you can scroll with a three-finger swipe-up up on the screen)
That's it. You can set the Home and Lock screen that way.
While developing an iOS iPhone app using the simulator, I copied a space scene with just stars for the background and and moved the app icons all to the home screen except left my app icon alone on a different page that way I minimized light and clutter.