What were you trying to do?
I have an app which I recently released to TestFlight for internal testing. I previously always tested the app locally where everything worked fine. As soon as I published to TestFlight, I get a validation error on iOS.
I have a Blade form which submits to SetupController@saveEndpoint via a SetupRequest form request. When I open the app on iOS and try to submit the form (with or without typing), I get url is required even though the input field visually shows the default value from config('services.app.default_api_url'). The only fix is to close the app and reopen it.
What happened?
What happened?
On first launch via TestFlight on iOS, the form validation fails with url is required, even though the field displays the default value correctly. Submitting the form returns a validation error. Closing and reopening the app resolves the issue permanently.
Expected: The form submits successfully with the default value on first launch.
How to reproduce the bug
How to reproduce
Build and publish the app to TestFlight
Install via TestFlight on an iOS device
Open the app for the first time
The setup screen shows the URL input with the default value
Press the submit button (with or without modifying the field)
Observe validation error: url is required
Close the app completely and reopen → works correctly
Debug Output
+--------------------+--------+
| Package Version | 3.2.3 |
| PHP Version (Host) | 8.4.19 |
| OS | Darwin |
| OS Version | 24.6.0 |
| Embedded PHP | 8.4 |
+--------------------+--------+
Installed Plugins:
+---------------------------------+---------+
| nativephp/mobile-browser | 1.0.1 |
| nativephp/mobile-secure-storage | 1.0.1 |
+---------------------------------+---------+
Development Tools:
+----------------+--------------------------------------+
| Xcode | Xcode 16.4 |
| Android Studio | Android Studio AndroidStudio2025.2.2 |
| Gradle | Gradle 8.13 |
| Java | openjdk version "17.0.17" 2025-10-21 |
| CocoaPods | CocoaPods 1.16.2 |
+----------------+--------------------------------------+
Which operating systems have you seen this occur on?
macOS
Which platforms were you trying to build for?
iOS (Device)
Notes
Relevant Code
Blade View:
<form action="{{ route('setup.save') }}" method="POST" class="flex grow flex-col gap-6">
@csrf
<div>
<x-inputs.input
id="url"
type="text"
name="url"
value="{{ old('url', config('services.app.default_api_url')) }}"
class="text-xs"
/>
</div>
@error('url')
<p class="mt-1 text-sm text-red-600">{{ $message }}</p>
@enderror
</form>
Form Request:
phppublic function rules(): array
{
return [
'url' => ['required', 'url'],
];
}
What were you trying to do?
I have an app which I recently released to TestFlight for internal testing. I previously always tested the app locally where everything worked fine. As soon as I published to TestFlight, I get a validation error on iOS.
I have a Blade form which submits to SetupController@saveEndpoint via a SetupRequest form request. When I open the app on iOS and try to submit the form (with or without typing), I get url is required even though the input field visually shows the default value from config('services.app.default_api_url'). The only fix is to close the app and reopen it.
What happened?
What happened?
On first launch via TestFlight on iOS, the form validation fails with url is required, even though the field displays the default value correctly. Submitting the form returns a validation error. Closing and reopening the app resolves the issue permanently.
Expected: The form submits successfully with the default value on first launch.
How to reproduce the bug
How to reproduce
Build and publish the app to TestFlight
Install via TestFlight on an iOS device
Open the app for the first time
The setup screen shows the URL input with the default value
Press the submit button (with or without modifying the field)
Observe validation error: url is required
Close the app completely and reopen → works correctly
Debug Output
+--------------------+--------+
| Package Version | 3.2.3 |
| PHP Version (Host) | 8.4.19 |
| OS | Darwin |
| OS Version | 24.6.0 |
| Embedded PHP | 8.4 |
+--------------------+--------+
Installed Plugins:
+---------------------------------+---------+
| nativephp/mobile-browser | 1.0.1 |
| nativephp/mobile-secure-storage | 1.0.1 |
+---------------------------------+---------+
Development Tools:
+----------------+--------------------------------------+
| Xcode | Xcode 16.4 |
| Android Studio | Android Studio AndroidStudio2025.2.2 |
| Gradle | Gradle 8.13 |
| Java | openjdk version "17.0.17" 2025-10-21 |
| CocoaPods | CocoaPods 1.16.2 |
+----------------+--------------------------------------+
Which operating systems have you seen this occur on?
macOS
Which platforms were you trying to build for?
iOS (Device)
Notes
Relevant Code
Blade View:
Form Request: