Workaround for ScreenOrientation.lockAsync() not working in EAS project - ios

I am trying to lock the screen orientation in my EAS project using the ScreenOrientation.lockAsync() method, but it's not working. I understand that this is because the EAS uses a standalone app that runs on Android and iOS devices, and it doesn't support some of the modules that are available in the standard Expo runtime.
Is there a workaround for this issue, or an alternative method that can be used to lock the screen orientation in an EAS project?
"expo": "~46.0.16",
"react-native": "0.69.6",
"react-native-screens": "~3.15.0"
"expo-screen-orientation": "~4.3.0",

Related

Flutter app not working after integration with existing native app

I have an existing native iOS App that in production already. Now i want a flutter module to be integrated into the existing app. My flutter module works fine when run individually. I want my native app to call the flutter screen and back to the native screen from flutter. I am able to open the flutter screen from native but not vice versa.
I am a beginner in Flutter with good experience in native iOS App, i have followed the steps specified in the flutter documentation - Flutter Method Channel. Can anyone help me step wise , how to make this work.

Xcode keeps building old/cached code on device

I am developing an iOS app with react native. When I run my app on a real iOS device via Xcode, code changes are not reflected anymore. It keeps building an old code version of my app. However, as soon as I run the app in the simulator, it uses the latest code. Unfortunately, cleaning the build folder, deleting ~/Library/Developer/Xcode/DerivedData/ and removing the old app from device did not help. Does anyone know a solution?

Use XCode to build the ionic app again, but content isn't updated

I was working on an ionic 4 app. When I finished adjusting, build the app for iOS again on VS Code, I switch to XCode and start building to test on my iPhone device.
But sometimes the app wasn't updated. The app I run on the browser on my laptop is the updated version, but the one finished building on my iPhone is not the updated one. Even changing the identifier won't work. (But sometimes it gets updated)
These are the code I was using for rebuilding on VSCode. After running that, I switch to XCode, adjust the signing setting and run building on my iPhone. I am sure the cookies and other temporary storage are not being used in the new app as I would need to log in again every time I build, and I use a unique identifier in every build to prevent that.
ionic cordova platform remove ios &&
ionic cordova platform add ios &&
ionic cordova plugin add cordova-plugin-ionic-webview
If anyone has encountered something similar, please let me know how to fix it. Thanks.

React Native - Migrate from Expo to another way of starting app - set up emulators for andorid and ios

I have smaller RN application made with expo (expo-cli) and it is really annoying starting app every time using expo. What I want is to migrate to another way of starting app on my phone and with hot-reloading (if it is possible). If not, how can I start it on emulators? What changes should I do on current code?
What came to my mind is to create new RN app using create-react-native-app and move code from current app. Then install android studio for android emulator and xcode for iOS emulator etc.
But I don't know exact steps how to migrate from expo and how to setup everything work in non-expo environment, how to set up emulators, how to start app on emulators etc. Can someone explain it in details please? Thanks.
If you run an Expo project on a real device rather than an emulator on your computer,
you can recognize it on the device using the expo start command through the Expo app.
However, you should be logged in with the same ID as the Expo-cli.
googleplay App // Appplay App
If you want to run Expo on an Android studio and xcode, you need to separate the project into a stand-alone app.
You can run expo eject <= you use Expokit

Ionic Framework for ios - Development Mode

I am using ionic framework to create an app. Previously I was working on Windows, but now I moved to Mac.
I already register with IOS developer program. Is there is any step by step tutorial available so I can test my app on my different iPhone devices?
Once you build your project with ionic build ios (of course, you first have to add the platform with ionic platform add ios) you will have a project file which you can open up with Xcode on your Mac.
From there you can easily simulate your app on various iOS devices (iPhone, iPad...), just look up a basics of how to use Xcode (here's one official tutorial).
Ionic also provides you with the ionic emulate ios command which starts the iOS emulator with your app without you needing to run Xcode.
edit: Yes, you can use Ionic View for this. In the CLI there is an option to share your development app with someone else by simply doing ionic share someone#email.com

Resources