How to disable minimizing ios simulator on outside click in android studio? - flutter

I am learning flutter. I created flutter app and successfully installed in android and IOS simulator, I have a problem using ios simulator, when i click outside the simulator it get minimized. I want to disable it or want to open in android studio's window screen, is it possible or how can i do that?

Click on your simulator, Go to the windows tab and check "Stay On Top".

Related

Flutter Firebase-Cloud-Messaging not appearing in android emulator

I have a FCM setup in my flutter app. Everything works as expected in the iOS world, but I can't get it to work in the android world. I can see the Push-Notification in the notification drawer, but they don't appear like the classic Push-Notification widget in the top bar. What am I doing wrong?
Android Emulators won't work. You need a physical device if you want to test cloud-messaging on Android.

Xcode 14 Canvas preview wrong for connected device

I had this error already in Xcode 13 but it still persists
in the current version.
When I connect my iPhone XS to preview my SwiftUI app in the canvas, it shows the iPhone 14 Pro layout. However, when I check on Devices and Simulators, it's correctly recognised as iPhone XS.
So when I design my layout, I always have to switch between the iPhone XS simulator for designing, and my real device for testing.
Does anybody know a way to show the correct device in the canvas?
I have the same issue and I found out that if you want to see the specific device type to canvas, you have to download the simulator for this device.
From the "Windows" tab, choose "Device and Simulators", and then Simulators. At the bottom left of the window, you can add new simulators.
Then choose your device type and download it.
Once you've added a new simulator, you can use PreviewDevice(rawValue: "Your Device Type").
For example:
I added a new iPhone 12 Simulator and use HomeScreen().previewDevice(PreviewDevice(rawValue: "iPhone 12"))
add simulator window
After that, I am able to see my screen as an iPhone 12.

Is it possible to inspect iPhone/iPad app in desktop?

I know that for Android it's possible to use Chrome://inspect to view the phone screen on your desktop. Clicking there is equal to tapping on the phone.
It's fine for browsers and after 4.4 - for apps that have some special lines of code inserted.
Whether it's possible for iPhone / iPad?
i.e. I have a REAL device with latest OS installed, which screen I'd like to be shown on MAC + clicking on the items on the screen will be equal to tappping on the phone.
XCode iOS Simulator - I am somewhat surprised you missed this part of the IDE.
It seems that this is not possible.

How do you set the default device in the iPhone simulator?

Every time I switch Xcode between debugging on my iPhone and running in the simulator it resets the simulated device. I want to run the simulator as an iPhone device, but it keeps changing back to iPad. Does anyone know how to set the configuration so that the simulator defaults to an iPhone device?
I can switch the hardware to iPhone inside the Simulator, but when I go back to Xcode and run a "Build Debug" it reopens the app inside an iPad. The only way I can get it to switch is by using the Overview menu in Xcode, the choices I see are iPad Simulator 3.2 and iPhone Simulator 4.0
And when I switch between device and simulator then it always goes back to iPad.
I got XCode 4 to launch the iPhone simulator instead of the iPad simulator by doing this:
In the "Product" menu, pick "Edit Scheme".
Single-Click "Run *Your_Project_Name* Debug" from the list on the left of the scheme editing window.
At the top of the window notice that the pull-down above "Destination" is set to "iPad 4.3 Simulator".
Change the pull-down to "iPhone 4.3 Simulator".
Click "OK".
In Xcode 9 you can select multiple devices. However an easy way to default to your favorite device is the following:
Choose your device from simulator-hardware-device-os you are working on
Now go to simulators - windows and turn off “ show device bezel”
Now simply close the ones you don’t want
What is the Base SDK set to in your project (General tab)? If it's not 4.0 then I think it may assume you are writing an iPad app.
If you set it to 3.2 wanting to support iOS 3.x, you need to set the base SDK to 4.0, then go into project build settings tab and change the OS Deployment target to 3.1 (or whatever the earliest version is you want to support).
In the iPhone Simulator, go to Hardware>Device, and select "iPhone". Whatever you choose there is automatically saved.
in iOS simulator go to :
File / Open Device / iOS 'versión' in my case (iOS 13.7) / Select the one you need
next time you open the simulator will be open with the device selected.
had the same problem - that is how i found this thread.
in SDK 4.2 make sure that when you open the a new xcode project you choose Product = 'iPhone' - the default selection is Ipad. Then when you save the project the device settings are saved with it.

Xcode: iPhone screenshots no longer work

I can't be sure when this stopped working because I haven't used it for a while, but it was possibly since I upgraded to the 3.2 SDK. In Organizer, when I select the "Screenshots" tab and press "Capture", nothing happens.
I've tried this with three different devices and I've restarted my Mac. What's happened, and how can I fix it?
I don't have the solution for your problem, but here's a workaround:
Use the device to make your screenshots (press the home and lock buttons simultaneously). The resulting screenshot will be saved on the device.
To transfer the screenshot to your desktop don't use slow-ish iPhoto or iTunes to synchronize. Instead import the images using Preview.app. There's a command in the file menu to import images from your iPhone when it's connected.
On xcode 4.0 (+), you can go to organizer and create a screenshot of device.
Window -> Organizer -> click the device tab and then screenshot button.
Hold command-shift-4. Then drag it across the iPhone screen. This key combination give you the ability to take a screen shot with the size you want.